From 608a30d55d6ea1b3fe1d6850fc7f97a57834700a Mon Sep 17 00:00:00 2001 From: Joe Sustaric Date: Thu, 15 Jun 2017 13:49:08 +1000 Subject: [PATCH 1/3] adding in the db setup to the setup script --- bin/setup | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/setup b/bin/setup index dce67d8..0639b80 100755 --- a/bin/setup +++ b/bin/setup @@ -5,4 +5,11 @@ set -vx bundle install +echo +echo "--- Preparing test databases" +echo + +dropdb event_sourcery_test || echo 0 +createdb event_sourcery_test + # Do any other automated setup that you need to do here From a44ce05cbd96cdd59a5b62a3658b899ef2e78163 Mon Sep 17 00:00:00 2001 From: Joe Sustaric Date: Thu, 15 Jun 2017 13:50:27 +1000 Subject: [PATCH 2/3] update the readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c7152f7..3c2b92d 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ EventSourcery::EventProcessing::ESPRunner.new( ## Development -After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. +After checking out the repo, run `bin/setup` to install dependencies. (This will install dependencies and configure the test database.) Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`. From d61dd06407b617cd994c8ef5a89bd82ba9a3543d Mon Sep 17 00:00:00 2001 From: Joe Sustaric Date: Thu, 15 Jun 2017 15:14:37 +1000 Subject: [PATCH 3/3] wording change in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c2b92d..786bfbb 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ EventSourcery::EventProcessing::ESPRunner.new( ## Development -After checking out the repo, run `bin/setup` to install dependencies. (This will install dependencies and configure the test database.) Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. +After checking out the repo, run `bin/setup` to install dependencies. (This will install dependencies and recreate the test database.) Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`.