lib/luna_park/http/response.rb in luna_park-0.11.5 vs lib/luna_park/http/response.rb in luna_park-0.11.6
- old
+ new
@@ -369,9 +369,11 @@
}
end
# Two response should be equal, if their attributes (request, code, body, headers, cookies) match.
def ==(other)
+ return false unless other.is_a? Response
+
code == other.code &&
body == other.body &&
headers == other.headers &&
cookies == other.cookies
end