Rakefile in cliutils-2.1.4 vs Rakefile in cliutils-2.2.0

- old
+ new

@@ -18,10 +18,17 @@ Rake::TestTask.new do |t| t.libs << "test" t.test_files = FileList['test/*_test.rb', 'test/**/*_test.rb'] end +require 'rspec/core/rake_task' +desc "Run the specs." +RSpec::Core::RakeTask.new do |t| + t.pattern = "spec/**/*_spec.rb" + t.verbose = false +end + desc "Release CLIUtils version #{version}" task :release => :build do unless `git branch` =~ /^\* master$/ puts "You must be on the master branch to release!" exit! @@ -39,6 +46,6 @@ FileUtils.mkdir_p "pkg" sh "gem build cliutils.gemspec" FileUtils.mv("./cliutils-#{version}.gem", "pkg") end -task :default => :test +task :default => [:spec] #:yard \ No newline at end of file