Skip to content

Commit

Permalink
Merge pull request #1100 from ctti-clinicaltrials/fix/AACT-552-Fix_no…
Browse files Browse the repository at this point in the history
…tifier_tests

AACT-552 Fix notifier tests
  • Loading branch information
micronix authored Oct 26, 2023
2 parents 8682518 + 1909bdc commit 784d311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/mailers/notifier_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
require 'spec_helper'

describe Notifier, type: :mailer do
let(:stub_request_headers) { {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Faraday v1.1.0' } }
let(:stub_request_headers) { {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Faraday v2.1.0' } }
let(:study_statistics_body) {File.read('spec/support/json_data/study_statistics.json') }
let(:mailer_stub) { stub_request(:get, 'https://clinicaltrials.gov/api/info/study_statistics?fmt=json').with(headers: stub_request_headers).to_return(:status => 200, :body => study_statistics_body, :headers => {}) }
let(:mailer_stub) { stub_request(:get, 'https://classic.clinicaltrials.gov/api//info/study_statistics?fmt=json').with(headers: stub_request_headers).to_return(:status => 200, :body => study_statistics_body, :headers => {}) }
let(:msg) { described_class.send_msg('[email protected]', event) }

before do
Expand Down

0 comments on commit 784d311

Please sign in to comment.