Class: Webrat::RackAdapter
- Inherits:
-
Object
show all
- Extended by:
- Forwardable
- Defined in:
- lib/webrat/adapters/rack.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(session) ⇒ RackAdapter
10
11
12
|
# File 'lib/webrat/adapters/rack.rb', line 10
def initialize(session) @session = session
end
|
Instance Attribute Details
Returns the value of attribute session.
7
8
9
|
# File 'lib/webrat/adapters/rack.rb', line 7
def session
@session
end
|
Instance Method Details
26
27
28
|
# File 'lib/webrat/adapters/rack.rb', line 26
def response
@session.last_response
end
|
#response_body ⇒ Object
14
15
16
|
# File 'lib/webrat/adapters/rack.rb', line 14
def response_body
response.body
end
|
#response_code ⇒ Object
18
19
20
|
# File 'lib/webrat/adapters/rack.rb', line 18
def response_code
response.status
end
|
22
23
24
|
# File 'lib/webrat/adapters/rack.rb', line 22
def
response.
end
|