Make all factory-generated users 'normal'

The use of create(:normal_user) makes the tests needlessly harder to
understand and reason about, particularly when we start using
associations in the factories.
This commit is contained in:
Andy Allan 2017-02-22 18:14:53 +00:00
parent 91e33f50bc
commit 91f3339b6a
5 changed files with 62 additions and 63 deletions

View file

@ -382,7 +382,7 @@ class ApiControllerTest < ActionController::TestCase
end
def test_permissions_basic_auth
basic_authorization(create(:normal_user).email, "test")
basic_authorization(create(:user).email, "test")
get :permissions
assert_response :success
assert_select "osm > permissions", :count => 1 do