spec/stub_helper.rb in airborne-0.1.4 vs spec/stub_helper.rb in airborne-0.1.5

- old
+ new

@@ -31,9 +31,13 @@ def mock_head(url, response_headers = {}, status = 200) stub_request(:head, @base_url + url).to_return(headers: response_headers, body: nil, status: status) end + def mock_options(url, response_headers = {}, status = 200) + 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