Class: Remarkable::ActionController::Matchers::RouteMatcher

Inherits:
Base
  • Object
show all
Defined in:
lib/remarkable_rails/action_controller/matchers/route_matcher.rb

Overview

Do not inherit from ActionController::Base since it don’t need all macro stubs behavior.

Instance Method Summary collapse

Instance Method Details

#controllerObject



22
23
24
# File 'lib/remarkable_rails/action_controller/matchers/route_matcher.rb', line 22

def controller
  @controller ||= @spec.controller if @spec.respond_to?(:controller)
end

#requestObject



26
27
28
# File 'lib/remarkable_rails/action_controller/matchers/route_matcher.rb', line 26

def request
  controller.request if controller
end