Rakefile in mongoid-2.2.6 vs Rakefile in mongoid-2.3.0
- old
+ new
@@ -22,14 +22,10 @@
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) do |spec|
- spec.pattern = "spec/**/*_spec.rb"
-end
-
RSpec::Core::RakeTask.new("spec:unit") do |spec|
spec.pattern = "spec/unit/**/*_spec.rb"
end
RSpec::Core::RakeTask.new("spec:functional") do |spec|
@@ -47,6 +43,7 @@
rdoc.rdoc_files.include("README*")
rdoc.rdoc_files.include("CHANGELOG*")
rdoc.rdoc_files.include("lib/**/*.rb")
end
-task :default => [ "spec:functional", "spec:unit" ]
+task :spec => [ "spec:functional", "spec:unit" ]
+task :default => :spec