From a38a93523d94c3485adfa49fd826c56e25554ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Fri, 26 Apr 2019 14:41:57 +0200 Subject: [PATCH] Stabilize Diaspora::Federation::Receive.comment.saves the signature data --- spec/lib/diaspora/federation/receive_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/lib/diaspora/federation/receive_spec.rb b/spec/lib/diaspora/federation/receive_spec.rb index deaea880e..1b3e087e7 100644 --- a/spec/lib/diaspora/federation/receive_spec.rb +++ b/spec/lib/diaspora/federation/receive_spec.rb @@ -110,7 +110,8 @@ describe Diaspora::Federation::Receive do expect(comment.signature).not_to be_nil expect(comment.signature.author_signature).to eq("aa") - expect(comment.signature.additional_data).to eq("new_property" => "data", "edited_at" => comment_entity.edited_at) + expect(comment.signature.additional_data["new_property"]).to eq("data") + expect(comment.signature.additional_data["edited_at"]).to be_within(1.second).of(comment_entity.edited_at) expect(comment.signature.order).to eq(comment_entity.signature_order.map(&:to_s)) end