Module: Tochtli::Test::Controller::ControllerClassSupport

Included in:
Tochtli::Test::Controller
Defined in:
lib/tochtli/test/controller.rb

Instance Method Summary collapse

Instance Method Details

#included(base) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/tochtli/test/controller.rb', line 7

def included(base)
  super
  base.class_eval do
    extend Uber::InheritableAttr
    inheritable_attr :controller_class

    def self.tests(controller_class)
      self.controller_class = controller_class
    end
  end
end