From 8f896139ffffd94892888a226ec371d35e692fcd Mon Sep 17 00:00:00 2001 From: Ben Topping Date: Tue, 5 Dec 2023 14:23:18 +0000 Subject: [PATCH] tests(sequencescape-v2-api-key): change hard coded header key to be read from config instead --- spec/lib/sequencescape_client_v2_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/sequencescape_client_v2_spec.rb b/spec/lib/sequencescape_client_v2_spec.rb index cd451421..5c035c74 100644 --- a/spec/lib/sequencescape_client_v2_spec.rb +++ b/spec/lib/sequencescape_client_v2_spec.rb @@ -39,7 +39,7 @@ # being successfully stubbed stub_request(:get, %r{api/v2/plates}) # If you changed this header key or value it would fail as it would not reflect reality - .with(headers: { 'X-Sequencescape-Client-Id' => 'test' }) + .with(headers: { 'X-Sequencescape-Client-Id' => Rails.configuration.ss_authorisation }) .to_return(File.new('./spec/support/responses/sequencescape/v2/plate_uuid_response.txt')) plate = SequencescapeClientV2::Plate.first expect(plate.type).to eq('plates')