Skip to content

Commit 098ed69

Browse files
committed
Use string keys instead of symbol keys
1 parent 34de6a1 commit 098ed69

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec/support/fakeweb.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
require 'fakeweb'
22
FakeWeb.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)
66
end
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)
1010
end
1111

12-
def fake_authenticate client, api_key
12+
def fake_authenticate(client, api_key)
1313
client.api_key = api_key
1414
end
1515

1616
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

0 commit comments

Comments
 (0)