Class: Evergreen::Suite
- Inherits:
-
Object
- Object
- Evergreen::Suite
- Defined in:
- lib/evergreen/suite.rb
Instance Attribute Summary collapse
-
#driver ⇒ Object
readonly
Returns the value of attribute driver.
Instance Method Summary collapse
- #get_spec(name) ⇒ Object
- #helpers ⇒ Object
-
#initialize ⇒ Suite
constructor
A new instance of Suite.
- #mounted_at ⇒ Object
- #root ⇒ Object
- #specs ⇒ Object
- #templates ⇒ Object
Constructor Details
Instance Attribute Details
#driver ⇒ Object (readonly)
Returns the value of attribute driver.
3 4 5 |
# File 'lib/evergreen/suite.rb', line 3 def driver @driver end |
Instance Method Details
#get_spec(name) ⇒ Object
22 23 24 |
# File 'lib/evergreen/suite.rb', line 22 def get_spec(name) Spec.new(self, name) end |
#helpers ⇒ Object
38 39 40 41 42 |
# File 'lib/evergreen/suite.rb', line 38 def helpers Dir.glob(File.join(root, Evergreen.helper_dir, '*')).map do |path| Helper.new(self, File.basename(path)) end end |
#mounted_at ⇒ Object
18 19 20 |
# File 'lib/evergreen/suite.rb', line 18 def mounted_at Evergreen.mounted_at end |
#specs ⇒ Object
26 27 28 29 30 |
# File 'lib/evergreen/suite.rb', line 26 def specs Dir.glob(File.join(root, Evergreen.spec_dir, '**/*_spec.{js,coffee}')).map do |path| Spec.new(self, path.gsub(File.join(root, Evergreen.spec_dir, ''), '')) end end |
#templates ⇒ Object
32 33 34 35 36 |
# File 'lib/evergreen/suite.rb', line 32 def templates Dir.glob(File.join(root, Evergreen.template_dir, '**/*')).map do |path| Template.new(self, File.basename(path)) end end |