tconsole 1.3.0.pre0 → 1.3.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tconsole/config.rb +9 -1
- data/lib/tconsole/version.rb +1 -1
- metadata +1 -1
data/lib/tconsole/config.rb
CHANGED
@@ -56,10 +56,18 @@ module TConsole
|
|
56
56
|
self.preload_paths = []
|
57
57
|
self.fail_fast = false
|
58
58
|
|
59
|
-
if mode == :rspec
|
59
|
+
if mode == :rspec
|
60
60
|
self.file_sets = {
|
61
61
|
"all" => ["#{test_dir}/**/*_spec.rb"]
|
62
62
|
}
|
63
|
+
|
64
|
+
# build file sets dynamically based on directories under the test
|
65
|
+
# directory
|
66
|
+
sets = Dir.entries(test_dir).select {|entry| File.directory?(File.join(test_dir,entry)) and !(entry =='.' || entry == '..') }
|
67
|
+
sets.each do |set|
|
68
|
+
self.file_sets[set] = ["#{test_dir}/#{set}/**/*_spec.rb"]
|
69
|
+
end
|
70
|
+
puts self.file_sets.to_s
|
63
71
|
else
|
64
72
|
self.file_sets = {
|
65
73
|
"all" => ["#{test_dir}/**/*_test.rb"]
|
data/lib/tconsole/version.rb
CHANGED