Sha256: 754cf3ad778f3353b6a7ea1ff4184c532cad13ef7e0f4f28283125331c3fa474

Contents?: true

Size: 595 Bytes

Versions: 28

Compression:

Stored size: 595 Bytes

Contents

ENV['RAILS_ENV'] = 'test'

require 'rails/all'
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

28 entries across 28 versions & 3 rubygems

Version Path
notifiably_audited-3.0.0 spec/spec_helper.rb
notifiably_audited-1.0.11 spec/spec_helper.rb
notifiably_audited-1.0.10 spec/spec_helper.rb
notifiably_audited-1.0.9 spec/spec_helper.rb
notifiably_audited-1.0.8 spec/spec_helper.rb
notifiably_audited-1.0.7 spec/spec_helper.rb
notifiably_audited-1.0.6 spec/spec_helper.rb
notifiably_audited-1.0.5 spec/spec_helper.rb
notifiably_audited-1.0.4 spec/spec_helper.rb
notifiably_audited-1.0.3 spec/spec_helper.rb
notifiably_audited-1.0.2 spec/spec_helper.rb
notifiably_audited-1.0.1 spec/spec_helper.rb
notifiably_audited-1.0.0 spec/spec_helper.rb
notifiably_audited-0.1.12 spec/spec_helper.rb
notifiably_audited-0.1.11 spec/spec_helper.rb
notifiably_audited-0.0.7 spec/spec_helper.rb
notifiably_audited-0.0.5 spec/spec_helper.rb
notifiably_audited-0.0.4 spec/spec_helper.rb
notifiably_audited-0.0.3 spec/spec_helper.rb
notifiably_audited-0.0.2 spec/spec_helper.rb