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