Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (13 sloc) 0.354 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake/testtask'

unless File.exists? "test/dummy/db/test.sqlite3"
  sh "cd test/dummy; rake db:migrate; rake db:test:prepare; cd ../../;"
end

Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

task :default => :test
Something went wrong with that request. Please try again.