spec/unit/attributes/destroy_spec.rb in mongoid-history-0.7.0 vs spec/unit/attributes/destroy_spec.rb in mongoid-history-0.8.0

- old
+ new

@@ -26,10 +26,10 @@ model_one.instance_variable_set(:@history_trackable_options, nil) model_one.track_history on: :foo obj_one.save! end let(:obj_one) { model_one.new(foo: 'Foo', bar: 'Bar') } - it { is_expected.to eq('_id' => [obj_one._id, nil], 'foo' => ['Foo', nil]) } + it { is_expected.to eq('_id' => [obj_one._id, nil], 'foo' => ['Foo', nil], 'version' => [1, nil]) } end describe '#insert_embeds_one_changes' do before(:all) do # Need class name constant. So, defining class like this