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:
parent
14aedc416a
commit
a722c6236c
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue