Sha256: 5dec6aa3d8d7ed86695dc6ce879287e09dbdf0201dc39173c654405d8d5beb0a
Contents?: true
Size: 302 Bytes
Versions: 5
Compression:
Stored size: 302 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
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
pd-1.1.0 | pd.watchr |
pd-1.0.5 | pd.watchr |
rag-1.2.1 | rag.watchr |
rag-1.2.0 | rag.watchr |
rag-1.1.0 | rag.watchr |