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:
parent
91e33f50bc
commit
91f3339b6a
5 changed files with 62 additions and 63 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue