2011-08-10 09:01:22 -04:00
|
|
|
require 'rake'
|
2012-03-03 09:01:19 -05:00
|
|
|
|
2012-10-19 08:19:43 -04:00
|
|
|
# These tasks help build and release the gem
|
|
|
|
require 'bundler/gem_tasks'
|
2012-03-03 09:01:19 -05:00
|
|
|
|
2012-10-19 08:19:43 -04:00
|
|
|
require 'rspec/core/rake_task'
|
2012-10-19 08:29:27 -04:00
|
|
|
RSpec::Core::RakeTask.new
|
2011-07-28 00:44:10 -04:00
|
|
|
|
2012-10-19 08:19:43 -04:00
|
|
|
require 'cucumber/rake/task'
|
2012-10-19 08:29:27 -04:00
|
|
|
Cucumber::Rake::Task.new
|
2012-10-19 08:12:38 -04:00
|
|
|
|
2012-10-25 03:26:32 -04:00
|
|
|
namespace :db do
|
|
|
|
desc 'Prepare sqlite database'
|
|
|
|
task :migrate do
|
|
|
|
system 'cd spec/dummy && rake db:migrate RAILS_ENV=test && rake db:migrate RAILS_ENV=development'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2012-10-19 08:12:38 -04:00
|
|
|
desc "Run all tests for CI"
|
2012-10-19 08:19:43 -04:00
|
|
|
task "ci" => ["spec", "cucumber"]
|
2012-10-19 08:12:38 -04:00
|
|
|
|
|
|
|
task "default" => "ci"
|