Sha256: 79771e702f20c523a2ed382eafe0b6d4abc48131aaa018a2724869f430ea722e

Contents?: true

Size: 313 Bytes

Versions: 1

Compression:

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rag-1.3.0 rag.watchr