1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

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