Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (18 sloc) 0.652 kB
#!/usr/bin/env rake
require 'bundler/gem_helper'
require 'rspec/core/rake_task'
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
RSpec::Core::RakeTask.new(:spec => ADAPTERS) do |t|
t.pattern = 'spec/audited/*_spec.rb'
end
task :default => :spec
Jump to Line
Something went wrong with that request. Please try again.