Sha256: 14078b6b06f19c4b4220ace49d07021c3646154fb8fdae82367f39dddca18694

Contents?: true

Size: 606 Bytes

Versions: 5

Compression:

Stored size: 606 Bytes

Contents

ENV['RAILS_ENV'] = 'test'

require 'protected_attributes'
require 'rails_app/config/environment'
require 'rspec/rails'
require 'audited'
require 'audited_spec_helpers'

SPEC_ROOT = Pathname.new(File.expand_path('../', __FILE__))

Dir[SPEC_ROOT.join('support/*.rb')].each{|f| require f }

RSpec.configure do |config|
  config.include AuditedSpecHelpers

  config.before(:each, :adapter => :active_record) do
    Audited.audit_class = Audited::Adapters::ActiveRecord::Audit
  end

  config.before(:each, :adapter => :mongo_mapper) do
    Audited.audit_class = Audited::Adapters::MongoMapper::Audit
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
audited-4.2.2 spec/spec_helper.rb
audited-4.2.1 spec/spec_helper.rb
audited-4.2.0 spec/spec_helper.rb
audited-4.0.0 spec/spec_helper.rb
audited-4.0.0.rc1 spec/spec_helper.rb