Skip to content

Commit

Permalink
Merge pull request #14 from envato/create_test_db_in_setup
Browse files Browse the repository at this point in the history
Create test db in setup script
  • Loading branch information
joesustaric authored Jun 15, 2017
2 parents b720c3a + e047c1b commit 88752c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,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 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`.

Expand Down
7 changes: 7 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 88752c4

Please sign in to comment.