Improved order of tests.

This commit is contained in:
Martin Edenhofer 2015-04-09 01:06:17 +02:00
parent 1fd02cb5f6
commit 68ea235192

View file

@ -91,13 +91,13 @@ class RestTest < ActiveSupport::TestCase
# username auth # username auth
request = get( 'rest-admin', 'adminpw', '/api/v1/users' ) request = get( 'rest-admin', 'adminpw', '/api/v1/users' )
assert_equal( request[:data].class, Array)
assert_equal( request[:response].code, '200' ) assert_equal( request[:response].code, '200' )
assert_equal( request[:data].class, Array)
# email auth # email auth
request = get( 'rest-admin@example.com', 'adminpw', '/api/v1/users' ) 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[:response].code, '200' )
assert_equal( request[:data].class, Array)
# /users # /users