Module: Invisible::MockMethods
- Defined in:
- lib/invisible/mock.rb
Overview
Contains methods to call each HTTP method on @app.
get("/") # Will call @app.mock.get("/")
session[:user] # Will call @app.session[:user]
Instance Method Summary collapse
- #params ⇒ Object
-
#session ⇒ Object
Delegate some request helpers to the app.
Instance Method Details
#params ⇒ Object
18 |
# File 'lib/invisible/mock.rb', line 18 def params; @app.params end |
#session ⇒ Object
Delegate some request helpers to the app
17 |
# File 'lib/invisible/mock.rb', line 17 def session; @app.session end |