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/paper_trail/events/destroy_spec.rb
Jared Beck 9f004a60e0 Revert #1108 (lorint's STI fix)
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
2018-08-21 23:13:34 -04:00

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