-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
36 lines (30 loc) · 751 Bytes
/
Rakefile
File metadata and controls
36 lines (30 loc) · 751 Bytes
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
32
33
34
35
36
# encoding: utf-8
require 'rubygems'
require 'rake'
require 'rspec/core/rake_task'
require 'bundler'
Bundler::GemHelper.install_tasks
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ["--color", "--format documentation"]
end
task :features do
Dir.chdir('spec/rails_root/') do
system('rake cucumber')
end
end
namespace :db do
task :migrate do
Dir.chdir('spec/rails_root/') do
system('rake db:migrate')
end
end
end
task :default => [:spec, :features]
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "administer #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end