Rakefile 355 B

1234567891011121314151617
  1. require 'rake/testtask'
  2. require "sqlite3"
  3. task :default => [:test]
  4. Rake::TestTask.new do |t|
  5. require "sequel"
  6. Sequel.extension :migration
  7. db = Sequel.connect("sqlite://test.db")
  8. Sequel::Migrator.run(db, "migrations")
  9. t.test_files = FileList['specs/*_spec.rb']
  10. t.verbose = false
  11. if t.respond_to?(:warning=)
  12. t.warning = false
  13. end
  14. end