Rakefile in vendorificator-0.1.0 vs Rakefile in vendorificator-0.1.1

- old
+ new

@@ -2,10 +2,11 @@ require "rubygems" require "bundler" Bundler.setup require "bundler/gem_tasks" +require 'rake/testtask' namespace :relish do desc "Publish documentation to Relish" task :push do sh "relish push 3ofcoins/vendorificator" @@ -14,16 +15,21 @@ begin require 'cucumber' require 'cucumber/rake/task' - Cucumber::Rake::Task.new(:features) do |t| - t.cucumber_opts = "--format pretty --verbose" - end + desc 'Run Cucumber features' + Cucumber::Rake::Task.new(:features) rescue LoadError desc 'Cucumber rake task not available' task :features do abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin' end end -task :default => :features +desc "Run Minitest specs" +Rake::TestTask.new :spec do |task| + task.libs << 'spec' + task.test_files = FileList['spec/**/*_spec.rb'] +end + +task :default => [:spec, :features]