mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
9f004a60e0
This partially reverts commit 58369e1d8f
.
I have kept the specs, skipped.
Per the following, this approach does not seem to be working:
- https://github.com/paper-trail-gem/paper_trail/issues/1135
- https://github.com/paper-trail-gem/paper_trail/pull/1137
- https://github.com/seanlinsley/paper_trail/pull/1
21 lines
614 B
Ruby
21 lines
614 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "spec_helper"
|
|
|
|
module PaperTrail
|
|
module Events
|
|
::RSpec.describe Destroy do
|
|
describe "#data", skip: true, versioning: true do
|
|
# https://github.com/paper-trail-gem/paper_trail/pull/1108
|
|
it "uses class.name for item_type, not base_class" do
|
|
carter = Family::CelebrityFamily.new(
|
|
name: "Carter",
|
|
path_to_stardom: "Mexican radio"
|
|
)
|
|
data = PaperTrail::Events::Destroy.new(carter, true).data
|
|
expect(data[:item_type]).to eq("Family::CelebrityFamily")
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|