Class: RailsSandboxMochaChai::MochaChaiFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_sandbox_mocha_chai.rb

Class Method Summary collapse

Class Method Details

.filter(controller) ⇒ Object



6
7
8
# File 'lib/rails_sandbox_mocha_chai.rb', line 6

def self.filter(controller)
  controller.template = 'mocha_chai/runner' if controller.params[:path].try :start_with?, 'chai'
end