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.
@@ -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"]
@@ -1,3 +1,3 @@
1
1
  module TConsole
2
- VERSION = "1.3.0.pre0"
2
+ VERSION = "1.3.0.pre1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tconsole
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0.pre0
4
+ version: 1.3.0.pre1
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: