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-11-02 22:14:03 -04:00
|
|
|
file "spec/dummy/db/test.sqlite3" do
|
|
|
|
system "cd spec/dummy &&
|
|
|
|
RAILS_ENV=test rake db:migrate"
|
2012-10-25 03:26:32 -04:00
|
|
|
end
|
|
|
|
|
2012-11-02 22:14:03 -04:00
|
|
|
task :cucumber => :"spec/dummy/db/test.sqlite3"
|
2012-11-02 21:50:09 -04:00
|
|
|
|
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"
|