Class: Siesta::TestSuite::Group
- Inherits:
-
Object
- Object
- Siesta::TestSuite::Group
- Includes:
- Virtus
- Defined in:
- lib/siesta/test_suite.rb
Instance Method Summary collapse
Instance Method Details
#items ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/siesta/test_suite.rb', line 15 def items @items ||= Dir.glob(File.join(path, '*.t.js')).inject([]) do |c, f| c << Item.new(:path => f, :group => self, :suite => suite) unless File.directory?(f) c end end |
#name ⇒ Object
9 10 11 12 13 |
# File 'lib/siesta/test_suite.rb', line 9 def name @name ||= path.gsub(suite.path, '') @name.blank? ? 'global' : @name end |