Permalink
Browse files

Add warning about adding arguments to DatabaseCleaner.strategy

  • Loading branch information...
1 parent fd30714 commit 8dfcf9ce265bc5be37cdcb67fa96cf23a8d7a5e2 @mipearson committed Jan 17, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 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

0 comments on commit 8dfcf9c

Please sign in to comment.