Sha256: 9b4cb2e4c96ca573497946f917b40e56bba1e318880f4602fe4b98aa1011bb6d
Contents?: true
Size: 657 Bytes
Versions: 3
Compression:
Stored size: 657 Bytes
Contents
class Teabag::SpecController < ActionController::Base helper Teabag::SpecHelper rescue nil layout false unless Rails.application.config.assets.debug rescue_from Exception, with: :javascript_exception end def suites @suites = Teabag::Suite.all end def runner @suite = Teabag::Suite.new(params) end def fixtures prepend_view_path Teabag.configuration.root.join(Teabag.configuration.fixture_path) render "/#{params[:filename]}" end private def javascript_exception(exception) err = "#{exception.class.name}: #{exception.message}" render text: "<script>throw Error(#{err.inspect})</script>" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
teabag-0.5.5 | app/controllers/teabag/spec_controller.rb |
teabag-0.5.4 | app/controllers/teabag/spec_controller.rb |
teabag-0.5.3 | app/controllers/teabag/spec_controller.rb |