Rakefile in audited-4.2.2 vs Rakefile in audited-4.3.0
- old
+ new
@@ -3,31 +3,16 @@
require 'bundler/gem_helper'
require 'rspec/core/rake_task'
require 'rake/testtask'
require 'appraisal'
-Bundler::GemHelper.install_tasks(:name => 'audited')
-Bundler::GemHelper.install_tasks(:name => 'audited-activerecord')
-Bundler::GemHelper.install_tasks(:name => 'audited-mongo_mapper')
+Bundler::GemHelper.install_tasks(name: 'audited')
-ADAPTERS = %w(active_record mongo_mapper)
+RSpec::Core::RakeTask.new(:spec)
-ADAPTERS.each do |adapter|
- desc "Run RSpec code examples for #{adapter} adapter"
- RSpec::Core::RakeTask.new(adapter) do |t|
- t.pattern = "spec/audited/adapters/#{adapter}/**/*_spec.rb"
- end
-end
-
-task :spec do
- ADAPTERS.each do |adapter|
- Rake::Task[adapter].invoke
- end
-end
-
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true
end
-task :default => [:spec, :test]
+task default: [:spec, :test]