Changing test to not bother with saved response, since it wasn't set by the test.

This commit is contained in:
Matt Connolly
2012-05-06 17:08:00 +10:00
parent 90a63d4d89
commit 2a3a8b8008
2 changed files with 15 additions and 18 deletions

View File

@@ -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