summaryrefslogtreecommitdiff
path: root/spec/graphql/types/ci/status_action_type_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/types/ci/status_action_type_spec.rb')
-rw-r--r--spec/graphql/types/ci/status_action_type_spec.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/graphql/types/ci/status_action_type_spec.rb b/spec/graphql/types/ci/status_action_type_spec.rb
index ab7dee3dd11..4c467bf240e 100644
--- a/spec/graphql/types/ci/status_action_type_spec.rb
+++ b/spec/graphql/types/ci/status_action_type_spec.rb
@@ -25,15 +25,9 @@ RSpec.describe Types::Ci::StatusActionType do
stage = build(:ci_stage_entity, status: :skipped)
status = stage.detailed_status(stage.pipeline.user)
- grandparent_object = double(:grandparent_object, object: stage)
- parent_object = double(:parent_object, object: status)
-
- grandparent = double(:parent, object: grandparent_object)
- parent = double(:parent, object: parent_object, parent: grandparent)
-
expected_id = "#{stage.class.name}-#{status.id}"
- expect(resolve_field('id', status, extras: { parent: parent })).to eq(expected_id)
+ expect(resolve_field('id', status, extras: { parent: status }, arg_style: :internal)).to eq(expected_id)
end
end
end