Rakefile in sudo_attributes-0.2.0 vs Rakefile in sudo_attributes-0.3.0

- old
+ new

@@ -9,22 +9,22 @@ gem.description = %Q{Adds 'sudo' methods to update protected ActiveRecord attributes with mass assignment} gem.email = "github@lette.us" gem.homepage = "http://github.com/beerlington/sudo_attributes" gem.authors = ["Peter Brown"] gem.add_development_dependency "rspec", ">= 1.2.9" + gem.add_development_dependency "sqlite3-ruby" gem.add_dependency "rails", ">= 2.3.0" end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" end -require 'rake/testtask' -Rake::TestTask.new(:test) do |test| - test.libs << 'lib' << 'test' - test.pattern = 'test/**/test_*.rb' - test.verbose = true +require 'spec/rake/spectask' +Spec::Rake::SpecTask.new(:spec) do |spec| + spec.libs << 'lib' << 'spec' + spec.spec_files = FileList['spec/**/*_spec.rb'] end begin require 'rcov/rcovtask' Rcov::RcovTask.new do |test| @@ -36,12 +36,12 @@ task :rcov do abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" end end -task :test => :check_dependencies +task :spec => :check_dependencies -task :default => :test +task :default => :spec require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : ""