Skip to content

Add warning about javascript_strategy overriding DatabaseCleaner strategy #194

Merged
merged 1 commit into from Jan 21, 2012
View
5 lib/generators/cucumber/install/templates/support/_rails_each_run.rb.erb
@@ -27,7 +27,10 @@ end
# See the DatabaseCleaner documentation for details. Example:
#
# Before('@no-txn,@selenium,@culerity,@celerity,@javascript') do
-# DatabaseCleaner.strategy = :truncation, {:except => %w[widgets]}
+# # { :except => [:widgets] } may not do what you expect here
+# # as tCucumber::Rails::Database.javascript_strategy overrides
+# # this setting.
+# DatabaseCleaner.strategy = :truncation
# end
#
# Before('~@no-txn', '~@selenium', '~@culerity', '~@celerity', '~@javascript') do
Something went wrong with that request. Please try again.