Method: ActiveResource::Response#==
- Defined in:
- lib/active_resource/http_mock.rb
#==(other) ⇒ Object
Returns true if the other is a Response with an equal body, equal message and equal headers. Otherwise it returns false.
352 353 354 355 356 357 358 |
# File 'lib/active_resource/http_mock.rb', line 352 def ==(other) if other.is_a?(Response) other.body == body && other. == && other.headers == headers else false end end |