Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 332553aed2
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (19 sloc) 0.458 kB
require 'rubygems'
require 'filewatcher'
require 'paint'
def run_tests
puts Paint['Testing', :yellow]
output = %x[ruby test/test-open-uri-and-write.rb]
if(output[/Failure:/])
puts output
puts Paint['Failure', :red, :bright]
else
puts output
puts Paint['Ok', :green, :bright]
end
end
run_tests
files = ["lib/open-uri-and-write.rb", "test/test-open-uri-and-write.rb"]
FileWatcher.new(files).watch(0.5) do |filename|
run_tests
end
Jump to Line
Something went wrong with that request. Please try again.