Module: ViewSpec::DSL::Controller

Extended by:
ActiveSupport::Concern
Included in:
GroupContext, ScenarioContext, SpecContext
Defined in:
lib/view_spec/dsl/controller.rb

Instance Method Summary collapse

Instance Method Details

#controller(value = nil) ⇒ Object



10
11
12
13
# File 'lib/view_spec/dsl/controller.rb', line 10

def controller(value = nil)
  @controller = value unless value.nil?
  controller_class(@controller || ViewSpec.config.preview_controller)
end