File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11require 'fakeweb'
22FakeWeb . allow_net_connect = false
33
4- def fake_post path , response
5- FakeWeb . register_uri ( :post , "https://pi.pardot.com#{ path } " , : body => response )
4+ def fake_post ( path , response )
5+ FakeWeb . register_uri ( :post , "https://pi.pardot.com#{ path } " , body : response )
66end
77
8- def fake_get path , response
9- FakeWeb . register_uri ( :get , "https://pi.pardot.com#{ path } " , : body => response )
8+ def fake_get ( path , response )
9+ FakeWeb . register_uri ( :get , "https://pi.pardot.com#{ path } " , body : response )
1010end
1111
12- def fake_authenticate client , api_key
12+ def fake_authenticate ( client , api_key )
1313 client . api_key = api_key
1414end
1515
1616def assert_authorization_header
17- expect ( FakeWeb . last_request [ : authorization] ) . to eq ( 'Pardot api_key=my_api_key, user_key=bar' )
18- end
17+ expect ( FakeWeb . last_request [ ' authorization' ] ) . to eq ( 'Pardot api_key=my_api_key, user_key=bar' )
18+ end
You can’t perform that action at this time.
0 commit comments