Class: Rack::Jasmine::FocusedSuite

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/jasmine/focused_suite.rb

Instance Method Summary collapse

Constructor Details

#initialize(runner_config) ⇒ FocusedSuite

Returns a new instance of FocusedSuite.



5
6
7
# File 'lib/rack/jasmine/focused_suite.rb', line 5

def initialize(runner_config)
  @runner_config = runner_config
end

Instance Method Details

#call(env) ⇒ Object



9
10
11
12
# File 'lib/rack/jasmine/focused_suite.rb', line 9

def call(env)
  run_adapter = Rack::Jasmine::RunAdapter.new(@runner_config)
  run_adapter.run(env["PATH_INFO"])
end