mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Changing test to not bother with saved response, since it wasn't set by the test.
This commit is contained in:
@@ -76,9 +76,7 @@ class CustomStrategyTest < ActionController::TestCase
|
||||
assert ret.is_a?(Array)
|
||||
assert_equal 400, ret.first
|
||||
|
||||
# check the saved response as well:
|
||||
assert_response 400
|
||||
|
||||
# no need to test the saved response yet, that should be set by the correct processing of an action.
|
||||
end
|
||||
|
||||
test "custom strategy can return custom headers" do
|
||||
@@ -88,8 +86,7 @@ class CustomStrategyTest < ActionController::TestCase
|
||||
assert ret.is_a?(Array)
|
||||
assert_equal ret.third['X-FOO'], 'BAR'
|
||||
|
||||
# check the saved response as well:
|
||||
assert_equal response.headers['X-FOO'], 'BAR'
|
||||
# no need to test the saved response yet, that should be set by the correct processing of an action.
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user