diff options
author | azul <azul@riseup.net> | 2017-12-09 05:45:47 -0800 |
---|---|---|
committer | azul <azul@riseup.net> | 2017-12-09 05:45:47 -0800 |
commit | 89b879a3e5ee27bfc90751dcd02aa2213262cc5f (patch) | |
tree | de610d5ef7146c073b7129a20762838d78aeca03 /test/functional/api/identities_controller_test.rb | |
parent | 90c3fc431133cf18d83afd8e394e45c0bd5f63ac (diff) | |
parent | 7120117687e2e6078d7e94ddb9e8b93e8ad5f2e3 (diff) |
Merge branch 'upgrade/gemfile' into 'master'
Upgrade/gemfile
See merge request leap/webapp!55
Diffstat (limited to 'test/functional/api/identities_controller_test.rb')
-rw-r--r-- | test/functional/api/identities_controller_test.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/functional/api/identities_controller_test.rb b/test/functional/api/identities_controller_test.rb index 57345c8..bb5608e 100644 --- a/test/functional/api/identities_controller_test.rb +++ b/test/functional/api/identities_controller_test.rb @@ -4,7 +4,7 @@ class Api::IdentitiesControllerTest < ApiControllerTest test "api monitor can fetch identity" do monitor_auth do - identity = FactoryGirl.create :identity + identity = create_identity api_get :show, :id => identity.address, :format => 'json' assert_response :success assert_equal identity, assigns(:identity) @@ -16,9 +16,12 @@ class Api::IdentitiesControllerTest < ApiControllerTest test "anonymous cannot fetch identity" do - identity = FactoryGirl.create :identity + identity = create_identity api_get :show, :id => identity.address, :format => 'json' assert_response :forbidden end + def create_identity + FactoryBot.create :identity + end end |