Sha256: f1c4f113d194dd2d4ef53e01bc29f44b4f2bda57b9e57c45b1ad6801033bd166

Contents?: true

Size: 308 Bytes

Versions: 17

Compression:

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
tagen-1.1.5 tagen.watchr
tagen-1.1.4 tagen.watchr
tagen-1.1.3 tagen.watchr
tagen-1.1.2 tagen.watchr
tagen-1.1.1 tagen.watchr
tagen-1.1.0 tagen.watchr
tagen-1.0.4 tagen.watchr
tagen-1.0.3 tagen.watchr
tagen-1.0.2 tagen.watchr
tagen-1.0.1 tagen.watchr
tagen-1.0.0 tagen.watchr
tagen-0.2.5 tagen.watchr
tagen-0.2.4 tagen.watchr
tagen-0.2.3 tagen.watchr
tagen-0.2.1 tagen.watchr
tagen-0.2.0 tagen.watchr
tagen-0.1.1 tagen.watchr