Improved order of tests.
This commit is contained in:
parent
1fd02cb5f6
commit
68ea235192
1 changed files with 2 additions and 2 deletions
|
@ -91,13 +91,13 @@ class RestTest < ActiveSupport::TestCase
|
|||
|
||||
# username auth
|
||||
request = get( 'rest-admin', 'adminpw', '/api/v1/users' )
|
||||
assert_equal( request[:data].class, Array)
|
||||
assert_equal( request[:response].code, '200' )
|
||||
assert_equal( request[:data].class, Array)
|
||||
|
||||
# email auth
|
||||
request = get( 'rest-admin@example.com', 'adminpw', '/api/v1/users' )
|
||||
assert_equal( request[:data].class, Array)
|
||||
assert_equal( request[:response].code, '200' )
|
||||
assert_equal( request[:data].class, Array)
|
||||
|
||||
# /users
|
||||
|
||||
|
|
Loading…
Reference in a new issue