Rakefile in mongoid-2.8.1 vs Rakefile in mongoid-3.0.0.rc

- old
+ new

@@ -1,10 +1,9 @@ require "bundler" Bundler.setup require "rake" -require "rspec" require "rspec/core/rake_task" $LOAD_PATH.unshift File.expand_path("../lib", __FILE__) require "mongoid/version" @@ -21,20 +20,15 @@ system "git tag -a v#{Mongoid::VERSION} -m 'Tagging #{Mongoid::VERSION}'" system "git push --tags" system "gem push mongoid-#{Mongoid::VERSION}.gem" end -RSpec::Core::RakeTask.new("spec:unit") do |spec| - spec.pattern = "spec/unit/**/*_spec.rb" +RSpec::Core::RakeTask.new("spec") do |spec| + spec.pattern = "spec/**/*_spec.rb" end -RSpec::Core::RakeTask.new("spec:functional") do |spec| - spec.pattern = "spec/functional/**/*_spec.rb" -end - RSpec::Core::RakeTask.new('spec:progress') do |spec| spec.rspec_opts = %w(--format progress) spec.pattern = "spec/**/*_spec.rb" end -task :spec => [ "spec:functional", "spec:unit" ] task :default => :spec