Sha256: 73725b1642c027a106fb56f2b30867d34259334fbd323bfc33226a18c123496b

Contents?: true

Size: 284 Bytes

Versions: 12

Compression:

Stored size: 284 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

12 entries across 12 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paper_trail-5.2.3/spec/models/thing_spec.rb
paper_trail-6.0.2 spec/models/thing_spec.rb
paper_trail-6.0.1 spec/models/thing_spec.rb
paper_trail-6.0.0 spec/models/thing_spec.rb
paper_trail-5.2.3 spec/models/thing_spec.rb
paper_trail-5.2.2 spec/models/thing_spec.rb
paper_trail-5.2.1 spec/models/thing_spec.rb
paper_trail-5.2.0 spec/models/thing_spec.rb
paper_trail-5.1.1 spec/models/thing_spec.rb
paper_trail-5.1.0 spec/models/thing_spec.rb
paper_trail-5.0.1 spec/models/thing_spec.rb
paper_trail-5.0.0 spec/models/thing_spec.rb