mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: Allow Symbol objects to be deserialized in PostRevision (#17510)
Followup to ee07f6da7d111e46ca79454320d027c1aca7e157
This commit is contained in:
@ -23,4 +23,15 @@ describe PostRevision do
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
it "can serialize and deserialize symbols" do
|
||||
# Plugins may store symbolized values in this column
|
||||
pr = Fabricate(:post_revision, modifications: { key: :value })
|
||||
pr.reload
|
||||
expect(pr.modifications).to eq(
|
||||
{
|
||||
key: :value
|
||||
}
|
||||
)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user