to_json does not guarantee the order.

This commit is contained in:
José Valim
2011-04-18 13:03:22 +02:00
parent 14aedc416a
commit a722c6236c

View File

@@ -343,7 +343,9 @@ class AuthenticationOthersTest < ActionController::IntegrationTest
test 'sign in stub in json format' do
get new_user_session_path(:format => 'json')
assert_equal "{\"user\":{\"password\":\"\",\"email\":\"\"}}", response.body
assert_match '{"user":{', response.body
assert_match '"email":""', response.body
assert_match '"password":""', response.body
end
test 'uses the mapping from router' do