Refactor api_controller tests to avoid users fixtures.
This commit is contained in:
parent
1dc2ff7d57
commit
8bd98b5da8
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ class ApiControllerTest < ActionController::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_permissions_basic_auth
|
def test_permissions_basic_auth
|
||||||
basic_authorization(users(:normal_user).email, "test")
|
basic_authorization(create(:normal_user).email, "test")
|
||||||
get :permissions
|
get :permissions
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_select "osm > permissions", :count => 1 do
|
assert_select "osm > permissions", :count => 1 do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue