diff options
Diffstat (limited to 'spec/graphql/types/ci/detailed_status_type_spec.rb')
-rw-r--r-- | spec/graphql/types/ci/detailed_status_type_spec.rb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/spec/graphql/types/ci/detailed_status_type_spec.rb b/spec/graphql/types/ci/detailed_status_type_spec.rb index 81ab1b52552..c069098e5b0 100644 --- a/spec/graphql/types/ci/detailed_status_type_spec.rb +++ b/spec/graphql/types/ci/detailed_status_type_spec.rb @@ -10,9 +10,12 @@ RSpec.describe Types::Ci::DetailedStatusType do specify { expect(described_class.graphql_name).to eq('DetailedStatus') } it 'has all fields' do - expect(described_class).to have_graphql_fields(:id, :group, :icon, :favicon, - :details_path, :has_details, - :label, :text, :tooltip, :action) + expect(described_class).to have_graphql_fields( + :id, :group, :icon, :favicon, + :details_path, :has_details, + :label, :name, :text, :tooltip, + :action + ) end describe 'id field' do @@ -29,12 +32,12 @@ RSpec.describe Types::Ci::DetailedStatusType do status = stage.detailed_status(stage.pipeline.user) expected_status = { - button_title: status.action_button_title, - icon: status.action_icon, - method: status.action_method, - path: status.action_path, - title: status.action_title - } + button_title: status.action_button_title, + icon: status.action_icon, + method: status.action_method, + path: status.action_path, + title: status.action_title + } expect(resolve_field('action', status, arg_style: :internal)).to eq(expected_status) end |