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:
lukemelia 2007-01-30 05:55:17 +00:00
parent ddc6d57c17
commit b1b03b2c8a
6 changed files with 28 additions and 8 deletions

View file

@ -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