spec/stub_helper.rb in airborne-0.1.15 vs spec/stub_helper.rb in airborne-0.1.16
- old
+ new
@@ -1,9 +1,8 @@
require 'webmock/rspec'
module StubHelper
-
def initialize(*args)
@base_url = 'http://www.example.com/'
end
def mock_get(url, response_headers = {}, status = 200)
@@ -37,9 +36,9 @@
stub_request(:options, @base_url + url).to_return(headers: response_headers, body: nil, status: status)
end
private
- def get_json_response_file(name)
- IO.read(File.join('spec/test_responses', name + ".json"))
- end
+ def get_json_response_file(name)
+ IO.read(File.join('spec/test_responses', name + '.json'))
+ end
end