Sha256: 8a1e71ab487895d0dfa29242f428f01892090b2ecedf445fb0b8225e61297864

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'appraisal'

RSpec::Core::RakeTask.new(:spec)

task :default => :all

desc 'Test the plugin under all supported Rails versions.'
task :all do |t|
  exec('bundle exec appraisal install; bundle exec appraisal rspec')
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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
protector-0.7.1 Rakefile