Sha256: 9146fe955956181d211a4df1f95122ca141bd789ee3f1e029ba09f13052e2cfd

Contents?: true

Size: 434 Bytes

Versions: 11

Compression:

Stored size: 434 Bytes

Contents

ROOT_PATH = File.dirname(__FILE__)

def run_spec(file)
  system "rspec #{file}" if File.exist?(File.join(ROOT_PATH, file))
end

watch('spec/.*_spec\.rb') {|m| run_spec m[0] }
watch('spec/notes/.*_spec\.rb') {|m| run_spec m[0] }

watch('lib/rails-footnotes/(.*)\.rb') {|m| run_spec("spec/#{m[1]}_spec.rb") }
watch('lib/rails-footnotes/notes/.*_note\.rb') {|m| run_spec("spec/notes/#{m[1]}") }

watch('Gemfile') {|m| run_spec("spec") }

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rails-footnotes-3.7.9 .watchr.example
rails-footnotes-3.7.8 .watchr.example
rails-footnotes-3.7.7 .watchr.example
rails-footnotes-3.7.6 .watchr.example
rails-footnotes-3.7.5 .watchr.example
rails-footnotes-3.7.5.rc4 .watchr.example
rails-footnotes-3.7.5.rc3 .watchr.example
rails-footnotes-3.7.5.rc2 .watchr.example
rails-footnotes-3.7.5.rc1 .watchr.example
rails-footnotes-3.7.4 .watchr.example
rails-footnotes-3.7.3 .watchr.example