diff options
Diffstat (limited to 'spec/graphql/mutations/environments/canary_ingress/update_spec.rb')
-rw-r--r-- | spec/graphql/mutations/environments/canary_ingress/update_spec.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/graphql/mutations/environments/canary_ingress/update_spec.rb b/spec/graphql/mutations/environments/canary_ingress/update_spec.rb index fdf9cbaf25b..b93fb36a8ff 100644 --- a/spec/graphql/mutations/environments/canary_ingress/update_spec.rb +++ b/spec/graphql/mutations/environments/canary_ingress/update_spec.rb @@ -20,7 +20,7 @@ RSpec.describe Mutations::Environments::CanaryIngress::Update do describe '#resolve' do subject { mutation.resolve(id: environment_id, weight: weight) } - let(:environment_id) { environment.to_global_id.to_s } + let(:environment_id) { environment.to_global_id } let(:weight) { 50 } let(:update_service) { double('update_service') } @@ -62,14 +62,6 @@ RSpec.describe Mutations::Environments::CanaryIngress::Update do end end - context 'when environment is not found' do - let(:environment_id) { non_existing_record_id.to_s } - - it 'raises an error' do - expect { subject }.to raise_error(GraphQL::CoercionError) - end - end - context 'when user is reporter who does not have permission to access the environment' do let(:user) { reporter } |