2011-07-14 19:50:51 +00:00
|
|
|
require 'bundler'
|
|
|
|
Bundler::GemHelper.install_tasks
|
2011-08-18 21:45:59 +00:00
|
|
|
|
|
|
|
begin
|
|
|
|
require 'rspec/core/rake_task'
|
|
|
|
|
|
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
|
|
rescue LoadError
|
|
|
|
"#$! - no rspec"
|
|
|
|
end
|
|
|
|
|
2012-01-09 15:48:47 +00:00
|
|
|
begin
|
|
|
|
require 'rspec/core/rake_task'
|
|
|
|
|
|
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
|
|
rescue LoadError
|
|
|
|
"#$! - no rspec"
|
|
|
|
end
|
|
|
|
|
|
|
|
begin
|
|
|
|
require 'cucumber'
|
|
|
|
require 'cucumber/rake/task'
|
|
|
|
|
|
|
|
Cucumber::Rake::Task.new(:cucumber) do |t|
|
|
|
|
t.cucumber_opts = "features --format pretty"
|
|
|
|
end
|
|
|
|
rescue LoadError
|
|
|
|
"#$! - no cucumber"
|
|
|
|
end
|
|
|
|
|
|
|
|
task :default => [ :spec, :cucumber ]
|
2011-08-18 21:45:59 +00:00
|
|
|
|