2010-09-17 19:56:32 -04:00
|
|
|
require 'rubygems'
|
2010-09-17 20:23:13 -04:00
|
|
|
require 'rspec/core/rake_task'
|
2012-01-26 08:58:25 -05:00
|
|
|
require 'cucumber/rake/task'
|
2010-09-17 19:56:32 -04:00
|
|
|
require 'yard'
|
|
|
|
|
|
|
|
desc "Run all examples"
|
2010-11-21 08:37:36 -05:00
|
|
|
RSpec::Core::RakeTask.new(:spec) do |t|
|
|
|
|
#t.rspec_path = 'bin/rspec'
|
|
|
|
t.rspec_opts = %w[--color]
|
|
|
|
end
|
2010-09-17 19:56:32 -04:00
|
|
|
|
|
|
|
YARD::Rake::YardocTask.new do |t|
|
2012-01-06 13:15:33 -05:00
|
|
|
t.files = ['lib/**/*.rb']
|
2010-09-17 19:56:32 -04:00
|
|
|
#t.options = ['--any', '--extra', '--opts'] # optional
|
|
|
|
end
|
|
|
|
|
2012-01-26 08:58:25 -05:00
|
|
|
Cucumber::Rake::Task.new(:cucumber) do |task|
|
|
|
|
task.cucumber_opts = ['--format=progress', 'features']
|
|
|
|
end
|
|
|
|
|
|
|
|
task :default => [:spec, :cucumber]
|