Sha256: f4ee713f209bd8cd7253d786eaa1f8c28231a8d2c78d099b2aa018339cd96adb

Contents?: true

Size: 255 Bytes

Versions: 3

Compression:

Stored size: 255 Bytes

Contents

require 'spec_helper'

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-history-0.4.4 spec/unit/tracker_spec.rb
mongoid-history-0.4.3 spec/unit/tracker_spec.rb
mongoid-history-0.4.2 spec/unit/tracker_spec.rb