blob: a5e7b7616519fc9291c76c5767e2b68239b67b18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
RSpec.configure do |config|
config.around(:each, :allow_forgery_protection) do |example|
begin
ActionController::Base.allow_forgery_protection = true
example.call
ensure
ActionController::Base.allow_forgery_protection = false
end
end
end
|