1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/spec/models/thing_spec.rb

12 lines
284 B
Ruby
Raw Normal View History

require "rails_helper"
2016-02-15 22:32:40 -05:00
describe Thing, type: :model do
it { is_expected.to be_versioned }
2016-02-15 22:32:40 -05:00
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