Reputation: 6606
How do I configure my Rails test environment so I can both
(The system tests need forgery protection turned on because my application contains JavaScript that requests additional data as the user navigates the page.)
Do I need to create two separate environments? Or is there a way for test.rb
to recognize which type of tests I'm about to run and set config.action_controller.allow_forgery_protection
accordingly?
Upvotes: 0
Views: 14