Skip to content

Commit

Permalink
make rake tasks a little cleaner wrt dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Pickett committed Oct 23, 2011
1 parent d5817ad commit 9d37a55
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions Rakefile
Expand Up @@ -25,19 +25,23 @@ rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end
begin
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end

Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end
rescue LoadError
puts "Rspec (or a dependency) not available. gem install rspec"
end

task :spec => :check_dependencies
task :spec => :check_dependencies

begin
require 'cucumber/rake/task'
Expand Down

0 comments on commit 9d37a55

Please sign in to comment.