Sha256: a36dea72ef7e01acd66685b806adb140ce32fd8537c3f7c388eed57c16068c7f
Contents?: true
Size: 482 Bytes
Versions: 3
Compression:
Stored size: 482 Bytes
Contents
require 'fakeweb' FakeWeb.allow_net_connect = false def fake_post path, response FakeWeb.register_uri(:post, "https://pi.pardot.com#{path}", :body => response) end def fake_get path, response FakeWeb.register_uri(:get, "https://pi.pardot.com#{path}", :body => response) end def fake_authenticate client, api_key client.api_key = api_key end def assert_authorization_header expect(FakeWeb.last_request[:authorization]).to eq('Pardot api_key=my_api_key, user_key=bar') end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-pardot-1.3.2 | spec/support/fakeweb.rb |
ruby-pardot-1.3.1 | spec/support/fakeweb.rb |
ruby-pardot-1.3.0 | spec/support/fakeweb.rb |