Permalink
Browse files

Fix rake tasks

  • Loading branch information...
Ian Hough
Ian Hough committed Feb 26, 2011
1 parent bbbc627 commit eda9b669e3e51e857c4c2daeb3d59dc5ab26cb7b
Showing with 3 additions and 26 deletions.
  1. +3 −26 Rakefile
View
@@ -38,7 +38,7 @@ require_or_fail('jeweler', 'Jeweler (or a dependency) not available. Install it
Dir.glob(File.join('lib', 'test_support', '**/*.rb'))
gem.add_development_dependency 'activerecord', '~>3'
gem.add_development_dependency 'bundler', '~>1.0.0'
- gem.add_development_dependency 'cucumber', '=0.8.3'
+ gem.add_development_dependency 'cucumber'
gem.add_development_dependency 'jeweler', '=1.4.0'
gem.add_development_dependency 'rake'
gem.add_development_dependency 'rdoc'
@@ -50,35 +50,12 @@ require_or_fail('jeweler', 'Jeweler (or a dependency) not available. Install it
end
require_or_fail('sniff', 'Sniff gem not found, sniff tasks unavailable') do
- require 'sniff/rake_task'
- Sniff::RakeTask.new(:console) do |t|
+ require 'sniff/rake_tasks'
+ Sniff::RakeTasks.define_tasks do |t|
t.earth_domains = :hospitality
end
end
-require_or_fail('cucumber', 'Cucumber gem not found, cucumber tasks unavailable') do
- require 'cucumber/rake/task'
-
- desc 'Run all cucumber tests'
- Cucumber::Rake::Task.new(:features) do |t|
- if ENV['CUCUMBER_FORMAT']
- t.cucumber_opts = "features --format #{ENV['CUCUMBER_FORMAT']}"
- else
- t.cucumber_opts = 'features --format pretty'
- end
- end
-
- desc "Run all tests with RCov"
- Cucumber::Rake::Task.new(:features_with_coverage) do |t|
- t.cucumber_opts = "features --format pretty"
- t.rcov = true
- t.rcov_opts = ['--exclude', 'features']
- end
-
- task :test => :features
- task :default => :test
-end
-
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""

0 comments on commit eda9b66

Please sign in to comment.