Skip to content

Instantly share code, notes, and snippets.

@koko-u
koko-u / .watchr
Created April 29, 2011 02:18
ファイルの更新に伴いspecを実行するwatchr
def run_spec(file)
unless File.exist?(file)
puts "#{file} does not exist"
return
end
puts "Running #{file}"
system "bundle exec rspec #{file}"
puts
end