siesta 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/siesta/test_suite.rb +10 -3
- data/lib/siesta/version.rb +1 -1
- metadata +4 -4
data/lib/siesta/test_suite.rb
CHANGED
@@ -40,13 +40,20 @@ module Siesta
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def groups
|
43
|
-
@groups
|
44
|
-
|
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
|
-
|
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
|
data/lib/siesta/version.rb
CHANGED
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.
|
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
|
+
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: -
|
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: -
|
1427
|
+
hash: -4456853197365806065
|
1428
1428
|
requirements: []
|
1429
1429
|
rubyforge_project:
|
1430
1430
|
rubygems_version: 1.8.24
|