diff --git a/test/test_helper.rb b/test/test_helper.rb index bcd31d215297a51bbd6087cf8a2adba8ecb3f273..2c197f07040b1a0f2e755cd260a129e3bac6e50d 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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 ##