Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add warning about adding arguments to DatabaseCleaner.strategy

  • Loading branch information...
commit 8dfcf9ce265bc5be37cdcb67fa96cf23a8d7a5e2 1 parent fd30714
@mipearson authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.