Skip to content
This repository

Add warning about javascript_strategy overriding DatabaseCleaner strategy #194

Merged
merged 1 commit into from over 2 years ago

2 participants

mipearson Matt Wynne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 17, 2012
mipearson mipearson Add warning about adding arguments to DatabaseCleaner.strategy 8dfcf9c
This page is out of date. Refresh to see the latest.
5 lib/generators/cucumber/install/templates/support/_rails_each_run.rb.erb
@@ -27,7 +27,10 @@ end
27 27 # See the DatabaseCleaner documentation for details. Example:
28 28 #
29 29 # Before('@no-txn,@selenium,@culerity,@celerity,@javascript') do
30   -# DatabaseCleaner.strategy = :truncation, {:except => %w[widgets]}
  30 +# # { :except => [:widgets] } may not do what you expect here
  31 +# # as tCucumber::Rails::Database.javascript_strategy overrides
  32 +# # this setting.
  33 +# DatabaseCleaner.strategy = :truncation
31 34 # end
32 35 #
33 36 # Before('~@no-txn', '~@selenium', '~@culerity', '~@celerity', '~@javascript') do

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.