diff options
author | Luke Duncalfe <lduncalfe@eml.cc> | 2019-06-26 01:15:14 +0300 |
---|---|---|
committer | Luke Duncalfe <lduncalfe@eml.cc> | 2019-06-26 01:15:14 +0300 |
commit | bbdcbd98aed2bfb4eba008669d3fca500b6e0ace (patch) | |
tree | d79260df3dc7becd70402ca6875b6c44e0d88722 /spec/lib/gitlab/graphql/authorize | |
parent | b2a615c3c60dd3315ecf33d5fdb61061c9d4003e (diff) |
Remove unused authorized_find method
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29921#note_184713939
Diffstat (limited to 'spec/lib/gitlab/graphql/authorize')
-rw-r--r-- | spec/lib/gitlab/graphql/authorize/authorize_resource_spec.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/lib/gitlab/graphql/authorize/authorize_resource_spec.rb b/spec/lib/gitlab/graphql/authorize/authorize_resource_spec.rb index f9c4c619330..20842f55014 100644 --- a/spec/lib/gitlab/graphql/authorize/authorize_resource_spec.rb +++ b/spec/lib/gitlab/graphql/authorize/authorize_resource_spec.rb @@ -34,12 +34,6 @@ describe Gitlab::Graphql::Authorize::AuthorizeResource do end end - describe '#authorized_find' do - it 'returns the object' do - expect(loading_resource.authorized_find).to eq(project) - end - end - describe '#authorized_find!' do it 'returns the object' do expect(loading_resource.authorized_find!).to eq(project) @@ -66,12 +60,6 @@ describe Gitlab::Graphql::Authorize::AuthorizeResource do end end - describe '#authorized_find' do - it 'returns `nil`' do - expect(loading_resource.authorized_find).to be_nil - end - end - describe '#authorized_find!' do it 'raises an error' do expect { loading_resource.authorize!(project) }.to raise_error(Gitlab::Graphql::Errors::ResourceNotAvailable) @@ -127,12 +115,6 @@ describe Gitlab::Graphql::Authorize::AuthorizeResource do end let(:error) { /#{fake_class.name} has no authorizations/ } - describe '#authorized_find' do - it 'raises a comprehensive error message' do - expect { loading_resource.authorized_find }.to raise_error(error) - end - end - describe '#authorized_find!' do it 'raises a comprehensive error message' do expect { loading_resource.authorized_find! }.to raise_error(error) |