spec/spec_helper.rb in github_api-0.1.2 vs spec/spec_helper.rb in github_api-0.2.0

- old
+ new

@@ -13,38 +13,38 @@ RSpec.configure do |config| config.include WebMock::API end -def stub_get(path, endpoint = Github.endpoint) +def stub_get(path, endpoint = Github.endpoint.to_s) stub_request(:get, endpoint + path) end -def stub_post(path, endpoint = Github.endpoint) +def stub_post(path, endpoint = Github.endpoint.to_s) stub_request(:post, endpoint + path) end -def stub_patch(path, endpoint = Github.endpoint) +def stub_patch(path, endpoint = Github.endpoint.to_s) stub_request(:patch, endpoint + path) end -def stub_put(path, endpoint = Github.endpoint) +def stub_put(path, endpoint = Github.endpoint.to_s) stub_request(:put, endpoint + path) end -def stub_delete(path, endpoint = Github.endpoint) +def stub_delete(path, endpoint = Github.endpoint.to_s) stub_request(:delete, endpoint + path) end -def a_get(path, endpoint = Github.endpoint) +def a_get(path, endpoint = Github.endpoint.to_s) a_request(:get, endpoint + path) end -def a_post(path, endpoint = Github.endpoint) +def a_post(path, endpoint = Github.endpoint.to_s) a_request(:post, endpoint + path) end -def a_patch(path, endpoint = Github.endpoint) +def a_patch(path, endpoint = Github.endpoint.to_s) a_request(:patch, endpoint + path) end def a_put(path, endpoint = Github.endpoint) a_request(:put, endpoint + path)