Sha256: 64bebfe47148183f7a94b27d11ef67a00869cb61fe7c3789bc02370477654de2

Contents?: true

Size: 300 Bytes

Versions: 3

Compression:

Stored size: 300 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
	cmd = "rspec #{path}"
	puts cmd
	system cmd
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tagen-2.0.0 tagen.watchr
tagen-1.1.7 tagen.watchr
tagen-1.1.6 tagen.watchr