Sha256: 0a9c51c77e5228086d6bc01ed62a45ae49f4430c7903ed123ad788430d4525bf

Contents?: true

Size: 790 Bytes

Versions: 4

Compression:

Stored size: 790 Bytes

Contents

#!/usr/bin/env rake

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')

ADAPTERS = %w(active_record mongo_mapper)

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]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
audited-4.2.2 Rakefile
audited-4.2.1 Rakefile
audited-4.2.0 Rakefile
audited-4.0.0 Rakefile