Commit 4fe9a49d authored by Nathan Friend's avatar Nathan Friend

Update spec to use non_existing_record_id

This commit replaces a hard-coded "fake" ID with
`non_existing_record_id`.
parent df770ee2
......@@ -166,7 +166,7 @@ RSpec.describe Mutations::ReleaseAssetLinks::Update do
end
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
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