mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
13 lines
318 B
Ruby
13 lines
318 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "spec_helper"
|
|
|
|
RSpec.describe Thing, type: :model do
|
|
it { is_expected.to be_versioned }
|
|
|
|
describe "does 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
|