diff options
Diffstat (limited to 'spec/graphql/mutations/ci/runner/update_spec.rb')
-rw-r--r-- | spec/graphql/mutations/ci/runner/update_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/graphql/mutations/ci/runner/update_spec.rb b/spec/graphql/mutations/ci/runner/update_spec.rb index 302b680494d..3db0d552a05 100644 --- a/spec/graphql/mutations/ci/runner/update_spec.rb +++ b/spec/graphql/mutations/ci/runner/update_spec.rb @@ -66,14 +66,16 @@ RSpec.describe Mutations::Ci::Runner::Update do context 'with valid arguments' do it 'updates runner with correct values' do - expected_attributes = mutation_params.except(:id) + expected_attributes = mutation_params.except(:id, :tag_list) subject expect(subject[:errors]).to be_empty expect(subject[:runner]).to be_an_instance_of(Ci::Runner) expect(subject[:runner]).to have_attributes(expected_attributes) + expect(subject[:runner].tag_list).to contain_exactly(*mutation_params[:tag_list]) expect(runner.reload).to have_attributes(expected_attributes) + expect(runner.tag_list).to contain_exactly(*mutation_params[:tag_list]) end end |