Class: Teabag::Configuration::Suite

Inherits:
Object
  • Object
show all
Defined in:
lib/teabag/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Suite

Returns a new instance of Suite.

Yields:

  • (_self)

Yield Parameters:



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

#helperObject

Returns the value of attribute helper.



28
29
30
# File 'lib/teabag/configuration.rb', line 28

def helper
  @helper
end

#javascriptsObject

Returns the value of attribute javascripts.



28
29
30
# File 'lib/teabag/configuration.rb', line 28

def javascripts
  @javascripts
end

#matcherObject

Returns the value of attribute matcher.



28
29
30
# File 'lib/teabag/configuration.rb', line 28

def matcher
  @matcher
end

#no_coverageObject

Returns the value of attribute no_coverage.



28
29
30
# File 'lib/teabag/configuration.rb', line 28

def no_coverage
  @no_coverage
end

#stylesheetsObject

Returns the value of attribute stylesheets.



28
29
30
# File 'lib/teabag/configuration.rb', line 28

def stylesheets
  @stylesheets
end