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

25 lines (20 sloc) 0.62 kB
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
require 'rake'
require 'bundler'
Errbit::Application.load_tasks
Rake::Task[:default].clear
namespace :spec do
desc "Preparing test env"
task :prepare do
tmp_env = Rails.env
Rails.env = "test"
%w( errbit:bootstrap ).each do |task|
Rake::Task[task].invoke
end
Rails.env = tmp_env
end
end
Rake::Task["spec"].prerequisites.push("spec:prepare")
task :default => ['spec']
Jump to Line
Something went wrong with that request. Please try again.