Rakefile in culerity-0.2.4 vs Rakefile in culerity-0.2.5
- old
+ new
@@ -1,8 +1,9 @@
require 'rake'
require 'spec/rake/spectask'
require 'rake/rdoctask'
+require 'cucumber/rake/task'
begin
require 'rubygems' unless ENV['NO_RUBYGEMS']
require 'jeweler'
Jeweler::Tasks.new do |s|
@@ -14,15 +15,21 @@
s.authors = ["Alexander Lang"]
s.add_dependency 'cucumber'
s.add_dependency 'rspec'
end
rescue LoadError
- puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
+ puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
end
desc "Run all unit specs"
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_files = FileList['spec/*_spec.rb']
+end
+
+desc "Run all features"
+Cucumber::Rake::Task.new(:features) do |t|
+ t.fork = true
+ t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
end
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Culerity'