diff options
-rw-r--r-- | spec/spec.opts | 2 | ||||
-rw-r--r-- | spec/watchr.rb (renamed from autotest/watcher.rb) | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/spec/spec.opts b/spec/spec.opts index 91cd6427e..425f0edd3 100644 --- a/spec/spec.opts +++ b/spec/spec.opts @@ -1,6 +1,4 @@ --format s --colour ---loadby -mtime --backtrace diff --git a/autotest/watcher.rb b/spec/watchr.rb index 9f89a448c..bad89b088 100644 --- a/autotest/watcher.rb +++ b/spec/watchr.rb @@ -47,7 +47,7 @@ end def file2specs(file) %w{spec/unit spec/integration}.collect { |d| - file.sub('lib/puppet', d) + file.sub('lib/puppet', d).sub(".rb", "_spec.rb") }.find_all { |f| File.exist?(f) } @@ -81,7 +81,7 @@ def run_spec_files(files) files = Array(files) return if files.empty? opts = File.readlines('spec/spec.opts').collect { |l| l.chomp }.join(" ") - run_spec("spec #{files.join(' ')}") + run_spec("rspec #{opts} --tty #{files.join(' ')}") end def run_all_tests |