mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix wrong assert_equal
argument order.
It goes expected, then actual. Only changed this because the file was just touched (please don't submit pull requests :)).
This commit is contained in:
parent
61e4738c5d
commit
6158355f2e
1 changed files with 2 additions and 2 deletions
|
@ -92,14 +92,14 @@ module ActiveRecord
|
|||
app = lambda { |_| [200, {}, body] }
|
||||
response_body = ConnectionManagement.new(app).call(@env)[2]
|
||||
assert response_body.respond_to?(:to_path)
|
||||
assert_equal response_body.to_path, "/path"
|
||||
assert_equal "/path", response_body.to_path
|
||||
end
|
||||
|
||||
test "doesn't mutate the original response" do
|
||||
original_response = [200, {}, 'hi']
|
||||
app = lambda { |_| original_response }
|
||||
ConnectionManagement.new(app).call(@env)[2]
|
||||
assert_equal original_response.last, 'hi'
|
||||
assert_equal 'hi', original_response.last
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue