Sha256: 659ac96eb15cfc2c089e8b1f0876e8a3ee13a13b56c14008be5fa30fa2da0431

Contents?: true

Size: 398 Bytes

Versions: 13

Compression:

Stored size: 398 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Mongoid::History::Tracker do
  before :each do
    class MyTracker
      include Mongoid::History::Tracker
    end
  end
  
  after :each do
    Mongoid::History.tracker_class_name = nil
  end
  
  it "should set tracker_class_name when included" do
    Mongoid::History.tracker_class_name.should == :my_tracker
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mongoid-history-0.1.3 spec/tracker_spec.rb
mongoid-history-0.1.2 spec/tracker_spec.rb
mongoid-history-0.1.1 spec/tracker_spec.rb
mongoid-history-0.1.0 spec/tracker_spec.rb
mongoid-history-0.0.9 spec/tracker_spec.rb
mongoid-history-0.0.8 spec/tracker_spec.rb
mongoid-history-0.0.7 spec/tracker_spec.rb
mongoid-history-0.0.6 spec/tracker_spec.rb
mongoid-history-0.0.5 spec/tracker_spec.rb
mongoid-history-0.0.4 spec/tracker_spec.rb
mongoid-history-0.0.3 spec/tracker_spec.rb
mongoid-history-0.0.2 spec/tracker_spec.rb
mongoid-history-0.0.1 spec/tracker_spec.rb