1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Fix Cucumber tests to run migrations in test env

Under the Rails 4.1 appraisal the Cucumber tests are failing because of
this error:

    Migrations are pending. To resolve this issue, run:

        bin/rake db:migrate RAILS_ENV=test
This commit is contained in:
Elliot Winkler 2014-04-10 20:07:23 -06:00
parent fd31534045
commit d959505287

View file

@ -12,7 +12,7 @@ Feature: integrate with Rails
end
end
"""
When I successfully run `bundle exec rake db:migrate --trace`
When I successfully run `bundle exec rake db:migrate db:test:prepare --trace`
And I write to "app/models/user.rb" with:
"""
class User < ActiveRecord::Base