Sha256: 6141220a63efc87bac954166a16a01ea283ea85e613c189bd0f5a820e062d46f

Contents?: true

Size: 318 Bytes

Versions: 12

Compression:

Stored size: 318 Bytes

Contents

# lib/**/*.rb
watch %r~lib/(.*)\.rb~ do |m|
	test "spec/#{m[1]}_spec.rb"
end

# spec/**/*_spec.rb
watch %r~spec/.*_spec\.rb~ do |m|
	test m[0]
end

# Ctrl-\
Signal.trap('QUIT') do
  puts "--- Running all tests ---\n\n"
	test "spec"
end

def test(path)
	system "clear"
	cmd = "rspec #{path}"
	puts cmd
	system cmd
end

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
gnote-0.0.1 gnote.watchr
oldtime-0.1.3 oldtime.watchr
saber-0.0.7 saber.watchr
ben-0.0.1 ben.watchr
saber-0.0.6 saber.watchr
saber-0.0.4 saber.watchr
saber-0.0.3 saber.watchr
oldtime-0.1.2 oldtime.watchr
oldtime-0.1.1 oldtime.watchr
oldtime-0.1.0 oldtime.watchr
oldtime-0.0.1 oldtime.watchr
saber-0.0.1 saber.watchr