Class: Teabag::SpecController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Teabag::SpecController
- Defined in:
- app/controllers/teabag/spec_controller.rb
Instance Method Summary collapse
Instance Method Details
#fixtures ⇒ Object
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 |
#runner ⇒ Object
14 15 16 17 18 |
# File 'app/controllers/teabag/spec_controller.rb', line 14 def runner = {} [:instrument] = Teabag.configuration.coverage || params[:coverage] == "true" @suite = Teabag::Suite.new(params) end |
#suites ⇒ Object
10 11 12 |
# File 'app/controllers/teabag/spec_controller.rb', line 10 def suites @suites = Teabag::Suite.all end |