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