diff options
author | Azul <azul@riseup.net> | 2017-12-08 18:27:24 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2017-12-08 21:33:09 +0100 |
commit | d839bed40fb7901ea88395d4ba06e58f4b3cc88a (patch) | |
tree | 5939690ac0f0f2226459aa9412a80292515ebae2 /test/functional/api/users_controller_test.rb | |
parent | ff8b2635c308d45ec38fd4eed257db7da9b3c4b0 (diff) |
upgrade: factory_girl -> factory_bot
Diffstat (limited to 'test/functional/api/users_controller_test.rb')
-rw-r--r-- | test/functional/api/users_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/api/users_controller_test.rb b/test/functional/api/users_controller_test.rb index ee183f9..dfaf959 100644 --- a/test/functional/api/users_controller_test.rb +++ b/test/functional/api/users_controller_test.rb @@ -96,7 +96,7 @@ class Api::UsersControllerTest < ApiControllerTest end test "admin can show user" do - user = FactoryGirl.create :user + user = FactoryBot.create :user login :is_admin? => true api_get :show, :id => 0, :login => user.login, :format => :json assert_response :success @@ -109,7 +109,7 @@ class Api::UsersControllerTest < ApiControllerTest end test "admin can show is_admin property" do - admin = FactoryGirl.create :user + admin = FactoryBot.create :user with_config(admins: [admin.login]) do login admin api_get :show, :id => admin.id, :format => :json |