fix rubocop offense
This commit is contained in:
parent
57ed20719f
commit
c64eb0f838
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue