File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
require 'fakeweb'
2
2
FakeWeb . allow_net_connect = false
3
3
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 )
6
6
end
7
7
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 )
10
10
end
11
11
12
- def fake_authenticate client , api_key
12
+ def fake_authenticate ( client , api_key )
13
13
client . api_key = api_key
14
14
end
15
15
16
16
def 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