spec/watchr.rb in oct-0.2.0 vs spec/watchr.rb in oct-0.3.1
- old
+ new
@@ -42,16 +42,18 @@
files = Dir['spec/**/*_spec\.rb']
end
def run(cmd)
+ cmd = 'bundle exec ' + cmd unless cmd.match(/^bundle exec/)
+
pid = fork do
puts "\n"
if $c
print $c.cyan, cmd, $c.clear, "\n"
else
- puts cmd
+ puts cmd
end
exec(cmd)
end
Signal.trap('INT') do