siesta 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,13 +40,20 @@ module Siesta
40
40
  end
41
41
 
42
42
  def groups
43
- @groups ||= Dir.glob(File.join(path, '**', '*')).inject([]) do |c, f|
44
- c << Group.new(:path => f, :suite => self) if File.directory?(f)
43
+ return @groups if @groups
44
+
45
+ @groups = Dir.glob(File.join(path, '**', '*')).inject([]) do |c, f|
46
+ c << Group.new(:path => f, :suite => self) if has_tests?(f)
45
47
 
46
48
  c
47
49
  end
50
+ @groups << Group.new(:path => path, :suite => self) if has_tests?(path)
51
+
52
+ @groups
53
+ end
48
54
 
49
- @groups << Group.new(:path => path, :suite => self)
55
+ def has_tests?(path)
56
+ File.directory?(f) && !Dir[File.join(f, '*.t.js')].empty?
50
57
  end
51
58
  end
52
59
  end
@@ -1,3 +1,3 @@
1
1
  module Siesta
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siesta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-12 00:00:00.000000000 Z
12
+ date: 2012-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -1415,7 +1415,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1415
1415
  version: '0'
1416
1416
  segments:
1417
1417
  - 0
1418
- hash: -374333049007895659
1418
+ hash: -4456853197365806065
1419
1419
  required_rubygems_version: !ruby/object:Gem::Requirement
1420
1420
  none: false
1421
1421
  requirements:
@@ -1424,7 +1424,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1424
1424
  version: '0'
1425
1425
  segments:
1426
1426
  - 0
1427
- hash: -374333049007895659
1427
+ hash: -4456853197365806065
1428
1428
  requirements: []
1429
1429
  rubyforge_project:
1430
1430
  rubygems_version: 1.8.24