Sha256: 6f186c7064d81d31f9fc3672761f47c60315c2d9a4a2a6f9a0010f3c7ce49868

Contents?: true

Size: 292 Bytes

Versions: 7

Compression:

Stored size: 292 Bytes

Contents

require 'rails_helper'

describe Thing, :type => :model do
  it { is_expected.to be_versioned }

  describe "should not store object_changes", :versioning => true do
    let(:thing) { Thing.create(:name =>"pencil") }

    it { expect(thing.versions.last.object_changes).to be_nil }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
paper_trail-4.2.0 spec/models/thing_spec.rb
paper_trail-4.1.0 spec/models/thing_spec.rb
paper_trail-4.0.2 spec/models/thing_spec.rb
paper_trail-4.0.1 spec/models/thing_spec.rb
paper_trail-4.0.0 spec/models/thing_spec.rb
paper_trail-4.0.0.rc2 spec/models/thing_spec.rb
paper_trail-4.0.0.rc1 spec/models/thing_spec.rb