spec/signature_spec.rb in agra_api-0.3.3 vs spec/signature_spec.rb in agra_api-0.3.4

- old
+ new

@@ -12,10 +12,11 @@ end end describe '#find_by_email' do it 'should perform lookup on agra' do - stub_request(:get, "https://username:password@test.com/api/petitions/#{petition_id}/signatures/lookup?email=#{email_address}") + stub_request(:get, "https://test.com/api/petitions/#{petition_id}/signatures/lookup?email=#{email_address}") + .with(basic_auth: ['username', 'password']) .to_return(:body => {id: 1000, email: email_address}.to_json, :status => 200, :headers => { content_type: "application/json; charset=utf-8"}) signature = subject.find_by_email(email_address)