module Shoulda::Matchers::ActionController
def filter_param(key)
-
(FilterParamMatcher)
-
def filter_param(key) FilterParamMatcher.new(key) end
def permit(*params)
-
(PermitMatcher)
-
def permit(*params) PermitMatcher.new(params).in_context(self) end
def redirect_to(url_or_description, &block)
-
(RedirectToMatcher)
-
def redirect_to(url_or_description, &block) RedirectToMatcher.new(url_or_description, self, &block) end
def render_template(options = {}, message = nil)
-
(RenderTemplateMatcher)
-
def render_template(options = {}, message = nil) RenderTemplateMatcher.new(options, message, self) end
def render_with_layout(expected_layout = nil)
-
(RenderWithLayoutMatcher)
-
def render_with_layout(expected_layout = nil) RenderWithLayoutMatcher.new(expected_layout).in_context(self) end
def rescue_from(exception)
-
(RescueFromMatcher)
-
def rescue_from(exception) RescueFromMatcher.new exception end
def respond_with(status)
-
(RespondWithMatcher)
-
def respond_with(status) RespondWithMatcher.new(status) end
def route(method, path)
-
(RouteMatcher)
-
def route(method, path) RouteMatcher.new(method, path, self) end
def set_flash
-
(SetFlashMatcher)
-
def set_flash SetFlashMatcher.new.in_context(self) end
def set_session
-
(SetSessionMatcher)
-
def set_session SetSessionMatcher.new.in_context(self) end
def use_after_action(callback)
-
(CallbackMatcher)
-
def use_after_action(callback) CallbackMatcher.new(callback, :after, :action) end
def use_after_filter(callback)
-
(CallbackMatcher)
-
def use_after_filter(callback) CallbackMatcher.new(callback, :after, :filter) end
def use_around_action(callback)
-
(CallbackMatcher)
-
def use_around_action(callback) CallbackMatcher.new(callback, :around, :action) end
def use_around_filter(callback)
-
(CallbackMatcher)
-
def use_around_filter(callback) CallbackMatcher.new(callback, :around, :filter) end
def use_before_action(callback)
-
(CallbackMatcher)
-
def use_before_action(callback) CallbackMatcher.new(callback, :before, :action) end
def use_before_filter(callback)
-
(CallbackMatcher)
-
def use_before_filter(callback) CallbackMatcher.new(callback, :before, :filter) end