mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-12 07:32:37 +01:00
Restore functionality for creating an admin user on first run. Fixes #429.
Also improved the messaging in this situation. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@411 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
ddc6d57c17
commit
b1b03b2c8a
6 changed files with 28 additions and 8 deletions
|
|
@ -16,7 +16,7 @@ class CreateUserControllerTest < ActionController::IntegrationTest
|
|||
|
||||
def test_fails_with_401_if_not_authorized_user
|
||||
authenticated_post_xml_to_user_create @@foobar_postdata, 'nobody', 'nohow'
|
||||
assert_401_unauthorized
|
||||
assert_401_unauthorized_admin
|
||||
end
|
||||
|
||||
def test_fails_with_401_if_not_admin_user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue