Rakefile in pinpress-1.2.3 vs Rakefile in pinpress-1.3.0

- old
+ new

@@ -6,15 +6,15 @@ contents[/\sVERSION = '([^']+)'/, 1] end spec = eval(File.read('pinpress.gemspec')) -require 'rake/testtask' -desc 'Run unit tests' -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList['test/*_test.rb'] +require 'rspec/core/rake_task' +desc "Run the specs." +RSpec::Core::RakeTask.new do |t| + t.pattern = "spec/**/*_spec.rb" + t.verbose = false end require 'cucumber' require 'cucumber/rake/task' CUKE_RESULTS = 'results.html' @@ -51,6 +51,7 @@ FileUtils.mkdir_p "pkg" sh "gem build pinpress.gemspec" FileUtils.mv("./pinpress-#{ version }.gem", "pkg") end -task :default => [:yard, :test, :features] +task :default => [:yard, :spec, :features] +# task :default => [:spec]