Commit 2b1aa4d6 authored by Markus Koller's avatar Markus Koller

Merge branch 'nfriend-use-non_existing_record_id' into 'master'

Replace hard-coded "fake" ID with non_existing_record_id

See merge request gitlab-org/gitlab!56690
parents ef1af0b0 4fe9a49d
...@@ -166,7 +166,7 @@ RSpec.describe Mutations::ReleaseAssetLinks::Update do ...@@ -166,7 +166,7 @@ RSpec.describe Mutations::ReleaseAssetLinks::Update do
end end
context "when the link doesn't exist" do context "when the link doesn't exist" do
let(:mutation_arguments) { super().merge(id: 'gid://gitlab/Releases::Link/999999') } let(:mutation_arguments) { super().merge(id: "gid://gitlab/Releases::Link/#{non_existing_record_id}") }
it 'raises an error' do it 'raises an error' do
expect { subject }.to raise_error(Gitlab::Graphql::Errors::ResourceNotAvailable) expect { subject }.to raise_error(Gitlab::Graphql::Errors::ResourceNotAvailable)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment