Skip to content

Commit

Permalink
Explicitly disable autorun after rails test code is required.
Browse files Browse the repository at this point in the history
  • Loading branch information
tooky committed Aug 27, 2013
1 parent 233221b commit 5d3e946
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cucumber/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
require 'cucumber/rails/capybara'
require 'cucumber/rails/database'

MultiTest.disable_autorun
else
warn "WARNING: Cucumber-rails required outside of env.rb. The rest of loading is being deferred until env.rb is called.
To avoid this warning, move 'gem \'cucumber-rails\', :require => false' under only group :test in your Gemfile.
Expand Down

1 comment on commit 5d3e946

@aslakhellesoy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tooky, when fix bugs, always remember to mention that in History.md. Otherwise users won't know that the bug is fixed when they read History.md.

Please sign in to comment.