Class: Webrat::RackAdapter
- Inherits:
-
Object
show all
- Extended by:
- Forwardable
- Defined in:
- lib/webrat/adapters/rack.rb
Instance Method Summary
collapse
Constructor Details
#initialize(session) ⇒ RackAdapter
9
10
11
|
# File 'lib/webrat/adapters/rack.rb', line 9
def initialize(session) @session = session
end
|
Instance Method Details
21
22
23
|
# File 'lib/webrat/adapters/rack.rb', line 21
def response
@session.last_response
end
|
#response_body ⇒ Object
13
14
15
|
# File 'lib/webrat/adapters/rack.rb', line 13
def response_body
response.body
end
|
#response_code ⇒ Object
17
18
19
|
# File 'lib/webrat/adapters/rack.rb', line 17
def response_code
response.status
end
|