Rakefile in distributed_mutex-1.1.0 vs Rakefile in distributed_mutex-1.1.1
- old
+ new
@@ -15,16 +15,15 @@
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
begin
- require 'spec/rake/spectask'
+ require 'rspec/core/rake_task'
- Spec::Rake::SpecTask.new('spec') do |t|
- t.spec_opts = ["-f specdoc", "-c"]
- t.spec_files = FileList['spec/*_spec.rb']
+ RSpec::Core::RakeTask.new('spec') do |t|
+ t.rspec_opts = ["-fd", "-c"]
+ t.pattern = 'spec/**/*_spec.rb'
end
-
rescue LoadError
desc 'Spec rake task not available'
task :spec do
abort 'Spec rake task is not available. Be sure to install rspec as a gem or plugin'
end