summary refs log tree commit diff
diff options
context:
space:
mode:
authorjftucker <jftucker@gmail.com>2008-06-25 13:56:34 +0200
committerjftucker <jftucker@gmail.com>2008-06-25 13:56:34 +0200
commitb93e83bb1c9f62f0d553ed34d38880fafc68a0b7 (patch)
tree94e6cdcc5947c7e62ad92f1e2a701ef319b9f2a7
parentdc98c5c7b534395416550e3a7e1126a6de6c3c70 (diff)
downloadbacon-b93e83bb1c9f62f0d553ed34d38880fafc68a0b7.tar.gz
bacon-b93e83bb1c9f62f0d553ed34d38880fafc68a0b7.tar.xz
bacon-b93e83bb1c9f62f0d553ed34d38880fafc68a0b7.zip
support spec/test subdirs for -a
darcs-hash:20080625115634-28a3f-d59d260186f1b1e7e5b63375b8e13a4852949957.gz
-rwxr-xr-xbin/bacon6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/bacon b/bin/bacon
index 955142b..bf3af97 100755
--- a/bin/bacon
+++ b/bin/bacon
@@ -90,9 +90,9 @@ opts = OptionParser.new("", 24, '  ') { |opts|
 files = ARGV
 
 if automatic
-  files.concat Dir["test/test_*.rb"]
-  files.concat Dir["test/spec_*.rb"]
-  files.concat Dir["spec/spec_*.rb"]
+  files.concat Dir["test/**/test_*.rb"]
+  files.concat Dir["test/**/spec_*.rb"]
+  files.concat Dir["spec/**/spec_*.rb"]
 end
 
 if files.empty?