spec/watchr.rb in win32-autogui-0.4.0 vs spec/watchr.rb in win32-autogui-0.4.1
- old
+ new
@@ -15,11 +15,11 @@
if WINDOWS
begin
require 'Win32/Console/ANSI'
$c = Term::ANSIColor
rescue LoadError
- STDERR.puts 'WARNING: You must "gem install win32console" (1.2.0 or higher) to get coloured output on MRI/Windows'
+ STDERR.puts 'WARNING: You must "gem install win32console" (1.2.0 or higher) to get color output on MRI/Windows'
end
end
def getch
state = `stty -g`
@@ -48,11 +48,11 @@
puts "\n"
if $c
print $c.cyan, cmd, $c.clear, "\n"
else
- puts cmd
+ puts cmd
end
exec(cmd)
end
Signal.trap('INT') do
@@ -95,10 +95,9 @@
run(cmd)
end
def run_all_specs
cmd = "spec _1.3.1_ --color --format s #{all_spec_files.join(' ')}"
- p cmd
run(cmd)
end
def run_spec(spec)
cmd = "spec _1.3.1_ --color --format s #{spec}"