-require 'test_helper'
+require "test_helper"
class UserPreferenceControllerTest < ActionController::TestCase
fixtures :users, :user_preferences
assert_response :unauthorized, "should be authenticated"
# authenticate as a user with no preferences
- basic_authorization("test@example.com", "test")
+ basic_authorization("moderator@example.com", "test")
# try the read again
get :read
assert_select "preference", :count => 0
end
end
-
+
# authenticate as a user with preferences
basic_authorization("test@openstreetmap.org", "test")