Sha256: 80a48931740d9e313e10d0d0de9702215a0edc4660fcca9b444d24fc08545ab4

Contents?: true

Size: 358 Bytes

Versions: 9

Compression:

Stored size: 358 Bytes

Contents

RSpec.configure do |config|
  config.before :each do
    class Tracker
      include Mongoid::History::Tracker
    end
    Mongoid::History.tracker_class_name = 'Tracker'
    Mongoid::History.modifier_class_name = 'User'
  end
  config.after :each do
    Mongoid::History.tracker_class_name = nil
    Mongoid::History.trackable_class_options = nil
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mongoid-history-0.8.1 spec/support/mongoid_history.rb
mongoid-history-0.8.0 spec/support/mongoid_history.rb
mongoid-history-0.7.0 spec/support/mongoid_history.rb
mongoid-history-0.6.1 spec/support/mongoid_history.rb
mongoid-history-0.6.0 spec/support/mongoid_history.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-history-0.5.0/spec/support/mongoid_history.rb
mongoid-history-0.5.0 spec/support/mongoid_history.rb
mongoid-history-0.4.7 spec/support/mongoid_history.rb
mongoid-history-0.4.5 spec/support/mongoid_history.rb