Skip to content

Commit

Permalink
tests(sequencescape-v2-api-key): change hard coded header key to be r…
Browse files Browse the repository at this point in the history
…ead from config instead
  • Loading branch information
BenTopping committed Dec 5, 2023
1 parent 0419c4d commit 8f89613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/lib/sequencescape_client_v2_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 8f89613

Please sign in to comment.