Class: Teabag::Configuration
- Inherits:
-
Object
- Object
- Teabag::Configuration
- Includes:
- Singleton
- Defined in:
- lib/teabag/configuration.rb
Defined Under Namespace
Classes: Suite
Constant Summary collapse
- @@mount_at =
"/teabag"- @@root =
will default to Rails.root if left unset
nil- @@asset_paths =
["spec/javascripts", "spec/javascripts/stylesheets", "test/javascripts", "test/javascripts/stylesheets"]
- @@fixture_path =
"spec/javascripts/fixtures"- @@suites =
{"default" => proc{}}
- @@driver =
"phantomjs"- @@server =
nil- @@server_port =
nil- @@server_timeout =
20- @@fail_fast =
true- @@formatters =
"dot"- @@suppress_log =
false- @@color =
true- @@coverage =
false- @@coverage_reports =
nil
Class Method Summary collapse
- .coverage_reports ⇒ Object
- .formatters ⇒ Object
- .root=(path) ⇒ Object
- .suite(name = :default, &block) ⇒ Object
Class Method Details
.coverage_reports ⇒ Object
52 53 54 55 56 |
# File 'lib/teabag/configuration.rb', line 52 def self.coverage_reports return ["text-summary"] if @@coverage_reports.blank? return @@coverage_reports if @@coverage_reports.is_a?(Array) @@coverage_reports.to_s.split(/,\s?/) end |
.formatters ⇒ Object
58 59 60 61 62 |
# File 'lib/teabag/configuration.rb', line 58 def self.formatters return ["dot"] if @@formatters.blank? return @@formatters if @@formatters.is_a?(Array) @@formatters.to_s.split(/,\s?/) end |
.root=(path) ⇒ Object
44 45 46 |
# File 'lib/teabag/configuration.rb', line 44 def self.root=(path) @@root = Pathname.new(path.to_s) if path.present? end |
.suite(name = :default, &block) ⇒ Object
48 49 50 |
# File 'lib/teabag/configuration.rb', line 48 def self.suite(name = :default, &block) @@suites[name.to_s] = block end |