Class: WebMock::RequestBodyDiff
- Inherits:
-
Object
- Object
- WebMock::RequestBodyDiff
- Defined in:
- lib/specdiff/webmock.rb
Defined Under Namespace
Classes: PrettyPrintableThingy
Instance Method Summary collapse
- #body_diff ⇒ Object
-
#initialize(request_signature, request_stub) ⇒ RequestBodyDiff
constructor
A new instance of RequestBodyDiff.
Constructor Details
#initialize(request_signature, request_stub) ⇒ RequestBodyDiff
Returns a new instance of RequestBodyDiff.
6 7 8 9 |
# File 'lib/specdiff/webmock.rb', line 6 def initialize(request_signature, request_stub) @request_signature = request_signature @request_stub = request_stub end |
Instance Method Details
#body_diff ⇒ Object
25 26 27 28 |
# File 'lib/specdiff/webmock.rb', line 25 def body_diff specdiff = Specdiff.diff(request_stub_body, request_signature.body) PrettyPrintableThingy.new(specdiff) end |