Rakefile in file-find-0.4.4 vs Rakefile in file-find-0.5.0
- old
+ new
@@ -1,8 +1,8 @@
require 'rake'
require 'rake/clean'
-require 'rake/testtask'
+require 'rspec/core/rake_task'
CLEAN.include("**/*.gem", "**/*.rbc", "**/link*")
namespace :gem do
desc 'Create the file-find gem'
@@ -19,12 +19,10 @@
file = Dir["*.gem"].first
sh "gem install -l #{file}"
end
end
-Rake::TestTask.new do |t|
- task :test => 'clean'
- t.warning = true
- t.verbose = true
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.pattern = ['spec/file_find_spec.rb']
end
-task :default => :test
+task :default => :spec