Skip to content
Snippets Groups Projects
Commit 2aaf7e8a authored by Alex Reisner's avatar Alex Reisner
Browse files

Use MockHttpResponse instead of String.

parent 097cac91
No related branches found
No related tags found
No related merge requests found
......@@ -81,11 +81,7 @@ module Geocoder
def read_fixture(file)
filepath = File.join("test", "fixtures", file)
s = File.read(filepath).strip.gsub(/\n\s*/, "")
s.instance_eval do
def body; self; end
def code; "200"; end
end
s
MockHttpResponse.new(body: s, code: "200")
end
##
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment