Sha256: 8949f014d74d5678c6995e4e0834568983e83097e2942edb3ea0ec41c4759bf8
Contents?: true
Size: 786 Bytes
Versions: 5
Compression:
Stored size: 786 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 @javascript_options = {} @javascript_options[:instrument] = Teabag.configuration.coverage || params[:coverage] == "true" @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
5 entries across 5 versions & 1 rubygems