mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
c4148de9d0
Enable various standard configuration.
13 lines
353 B
Ruby
13 lines
353 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe Car, type: :model do
|
|
it { is_expected.to be_versioned }
|
|
|
|
describe "changeset", versioning: true do
|
|
it "has the expected keys (see issue 738)" do
|
|
car = Car.create!(name: "Alice")
|
|
car.update_attributes(name: "Bob")
|
|
assert_includes car.versions.last.changeset.keys, "name"
|
|
end
|
|
end
|
|
end
|