forked from flyingzumwalt/salt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
executable file
·31 lines (25 loc) · 960 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
require 'spec/rake/spectask'
desc "Set the RAILS_ENV to test"
task :set_test do
ENV['RAILS_ENV'] = "test"
end
desc "Run the hydrangea rspec examples"
task :spec => ["set_test", "db:test:clone_structure", "spec_without_db"] do
end
desc "Run the rspec examples without re-creating the test database first"
Spec::Rake::SpecTask.new('spec_without_db') do |t|
t.spec_files = FileList['spec/**/*.rb']
t.rcov = true
t.rcov_opts = %w{--exclude spec\/*,gems\/*,ruby\/* --aggregate coverage.data}
end
desc "Run all hydrangea tests"
task :alltests => ["set_test", "db:test:clone_structure", "spec_without_db", "cucumber"] do
end