spec/trackable_spec.rb in mongoid-history-0.3.1 vs spec/trackable_spec.rb in mongoid-history-0.3.2

- old
+ new

@@ -6,14 +6,10 @@ include Mongoid::Document include Mongoid::History::Trackable end end - after :each do - Mongoid::History.trackable_class_options = nil - end - it "should have #track_history" do MyModel.should respond_to :track_history end it "should append trackable_class_options ONLY when #track_history is called" do @@ -38,13 +34,9 @@ :except => ["created_at", "updated_at", "version", "modifier_id", "_id", "id"], :track_create => false, :track_update => true, :track_destroy => false, } - end - - after :each do - Mongoid::History.trackable_class_options = nil end it "should have default options" do Mongoid::History.trackable_class_options[:my_model].should == @expected_option end