Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.434 kb
require File.join(File.dirname(__FILE__), "app")
require 'spec/rake/spectask'
namespace :db do
task :connect do
Application.new
end
desc "Auto migrate the database"
task :migrate => :connect do
DataMapper.auto_migrate!
end
end
task :default => :spec
desc "Run RSpec test suite"
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_opts = ['-c', '--format specdoc']
t.spec_files = FileList['spec/**/*_spec.rb']
end
Jump to Line
Something went wrong with that request. Please try again.