Class: Webrat::Session::MockBody

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber-wordpress/webrat-patches.rb

Instance Method Summary collapse

Constructor Details

#initialize(response_body) ⇒ MockBody

Returns a new instance of MockBody.



12
13
14
# File 'lib/cucumber-wordpress/webrat-patches.rb', line 12

def initialize response_body
  @response_body = response_body
end

Instance Method Details

#bodyObject



15
16
17
# File 'lib/cucumber-wordpress/webrat-patches.rb', line 15

def body
  @response_body
end