Sha256: 7355ef735b40c2028db04eee59cb6034138cbe17adc90fea052bec7b1ab2a0a5

Contents?: true

Size: 304 Bytes

Versions: 15

Compression:

Stored size: 304 Bytes

Contents

def run_spec(file)
unless File.exist?(file)
puts "#{file} does not exist"
return
end

puts "Running #{file}"
system "bundle exec rspec #{file} --backtrace"
puts
end

watch("spec/.*/*_spec\.rb") do |match|
run_spec match[0]
end

watch("app/(.*/.*)\.rb") do |match|
run_spec %{spec/#{match[1]}_spec.rb}
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
express_translate-1.0.13 .watchr
express_translate-1.0.12 .watchr
express_translate-1.0.11 .watchr
express_translate-1.0.10 .watchr
express_translate-1.0.9 .watchr
express_translate-1.0.8 .watchr
express_translate-1.0.7 .watchr
express_translate-1.0.6 .watchr
express_translate-1.0.5 .watchr
express_translate-1.0.4 .watchr
express_translate-1.0.3 .watchr
express_translate-1.0.2 .watchr
express_translate-1.0.1 .watchr
express_translate-1.0 .watchr
express_translate-1.0.0.0 .watchr