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

Instance Method Details

#paramsObject



18
# File 'lib/invisible/mock.rb', line 18

def params;  @app.params end

#sessionObject

Delegate some request helpers to the app



17
# File 'lib/invisible/mock.rb', line 17

def session; @app.session end