spec/spec_helper.rb in hellosign-ruby-sdk-3.6.4 vs spec/spec_helper.rb in hellosign-ruby-sdk-3.7.0
- old
+ new
@@ -60,19 +60,19 @@
File.read(File.new(File.dirname(__FILE__) + "/fixtures/#{name}"))
end
def stub_get(path, fixture, status_code=200)
stub_request(:get, "#{HelloSign.end_point}#{HelloSign.api_version}#{path}").
- to_return(:body => load_fixture(fixture), :status => status_code)
+ to_return(:headers => load_fixture("headers"), :body => load_fixture(fixture), :status => status_code)
end
def a_get(path)
a_request(:get, "#{HelloSign.end_point}#{HelloSign.api_version}#{path}")
end
def stub_post(path, fixture, status_code=200)
stub_request(:post, "#{HelloSign.end_point}#{HelloSign.api_version}#{path}").
- to_return(:body => load_fixture(fixture), :status => status_code)
+ to_return(:headers => load_fixture("headers"), :body => load_fixture(fixture), :status => status_code)
end
def stub_post_oauth(path, fixture, status_code=200)
stub_request(:post, "#{HelloSign.oauth_end_point}#{path}").
to_return(:body => load_fixture(fixture), :status => status_code)