Rakefile in protector-0.1.0 vs Rakefile in protector-0.1.1
- old
+ new
@@ -9,5 +9,18 @@
desc 'Test the plugin under all supported Rails versions.'
task :all => ["appraisal:install"] do |t|
exec('rake appraisal spec')
end
+
+task :perf do
+ require 'protector'
+
+ Bundler.require
+
+ %w(ActiveRecord DataMapper Mongoid Sequel).each do |a|
+ if (a.constantize rescue nil)
+ load "perf/perf_helpers/boot.rb"
+ Perf.load a.underscore
+ end
+ end
+end
\ No newline at end of file