test/failure_app_test.rb in devise-2.2.3 vs test/failure_app_test.rb in devise-2.2.4
- old
+ new
@@ -78,12 +78,12 @@
assert_equal 'text/html; charset=utf-8', @response.second['Content-Type']
end
test 'setup a default message' do
call_failure
- assert_match /You are being/, @response.last.body
- assert_match /redirected/, @response.last.body
- assert_match /users\/sign_in/, @response.last.body
+ assert_match(/You are being/, @response.last.body)
+ assert_match(/redirected/, @response.last.body)
+ assert_match(/users\/sign_in/, @response.last.body)
end
test 'works for any navigational format' do
swap Devise, :navigational_formats => [:xml] do
call_failure('formats' => Mime::XML)