Class: Teabag::Configuration::Suite
- Inherits:
-
Object
- Object
- Teabag::Configuration::Suite
- Defined in:
- lib/teabag/configuration.rb
Instance Attribute Summary collapse
-
#helper ⇒ Object
Returns the value of attribute helper.
-
#javascripts ⇒ Object
Returns the value of attribute javascripts.
-
#matcher ⇒ Object
Returns the value of attribute matcher.
-
#no_coverage ⇒ Object
Returns the value of attribute no_coverage.
-
#stylesheets ⇒ Object
Returns the value of attribute stylesheets.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Suite
constructor
A new instance of Suite.
Constructor Details
#initialize {|_self| ... } ⇒ Suite
Returns a new instance of Suite.
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/teabag/configuration.rb', line 30 def initialize @matcher = "{spec/javascripts,app/assets}/**/*_spec.{js,js.coffee,coffee}" @helper = "spec_helper" @javascripts = ["teabag-jasmine"] @stylesheets = ["teabag"] @no_coverage = [%r{/lib/ruby/gems/}, %r{/vendor/assets/}, %r{/support/}, %r{/(.+)_helper.}] default = Teabag.configuration.suites["default"] self.instance_eval(&default) if default yield self if block_given? end |
Instance Attribute Details
#helper ⇒ Object
Returns the value of attribute helper.
28 29 30 |
# File 'lib/teabag/configuration.rb', line 28 def helper @helper end |
#javascripts ⇒ Object
Returns the value of attribute javascripts.
28 29 30 |
# File 'lib/teabag/configuration.rb', line 28 def javascripts @javascripts end |
#matcher ⇒ Object
Returns the value of attribute matcher.
28 29 30 |
# File 'lib/teabag/configuration.rb', line 28 def matcher @matcher end |
#no_coverage ⇒ Object
Returns the value of attribute no_coverage.
28 29 30 |
# File 'lib/teabag/configuration.rb', line 28 def no_coverage @no_coverage end |
#stylesheets ⇒ Object
Returns the value of attribute stylesheets.
28 29 30 |
# File 'lib/teabag/configuration.rb', line 28 def stylesheets @stylesheets end |