Sha256: efd92483e935004ec5ee4aeaf9aae5d9effea7f4721fc5126d447b86b1d8ee08
Contents?: true
Size: 425 Bytes
Versions: 3
Compression:
Stored size: 425 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 Thread.current[:mongoid_history_sweeper_controller] = nil end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-history-0.4.0 | spec/support/mongoid_history.rb |
mongoid-history-0.3.3 | spec/support/mongoid_history.rb |
mongoid-history-0.3.2 | spec/support/mongoid_history.rb |