diff --git a/spec/lib/diaspora_federation/entities/comment_spec.rb b/spec/lib/diaspora_federation/entities/comment_spec.rb index a3ed63a..c270ab3 100644 --- a/spec/lib/diaspora_federation/entities/comment_spec.rb +++ b/spec/lib/diaspora_federation/entities/comment_spec.rb @@ -35,7 +35,7 @@ XML created_at = Time.now.utc - 1.minute comment_data = FactoryGirl.build(:comment_entity, author: alice.diaspora_id, parent_guid: parent.guid).to_h comment_data[:created_at] = created_at - comment = described_class.new(comment_data, [:author, :guid, :parent_guid, :text, :created_at]) + comment = described_class.new(comment_data, %i(author guid parent_guid text created_at)) parsed_comment = described_class.from_xml(comment.to_xml) expect(parsed_comment.created_at).to eq(created_at.to_s)