Class: Teabag::SpecController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/teabag/spec_controller.rb

Instance Method Summary collapse

Instance Method Details

#fixturesObject



20
21
22
23
# File 'app/controllers/teabag/spec_controller.rb', line 20

def fixtures
  prepend_view_path Teabag.configuration.root.join(Teabag.configuration.fixture_path)
  render "/#{params[:filename]}"
end

#runnerObject



14
15
16
17
18
# File 'app/controllers/teabag/spec_controller.rb', line 14

def runner
  @javascript_options = {}
  @javascript_options[:instrument] = Teabag.configuration.coverage || params[:coverage] == "true"
  @suite = Teabag::Suite.new(params)
end

#suitesObject



10
11
12
# File 'app/controllers/teabag/spec_controller.rb', line 10

def suites
  @suites = Teabag::Suite.all
end