Sha256: f15ec97a65bddab8bf6a40a338ef77f58bc98ae9f62e31704e01a93ce35d113f

Contents?: true

Size: 330 Bytes

Versions: 9

Compression:

Stored size: 330 Bytes

Contents

# -*- ruby -*-

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

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
configliere-0.4.13 .watchr
configliere-0.4.12 .watchr
configliere-0.4.11 .watchr
configliere-0.4.10 .watchr
configliere-0.4.8 .watchr
configliere-0.4.7 .watchr
configliere-0.4.6 .watchr
configliere-0.4.5 .watchr
configliere-0.4.4 .watchr