fix rubocop offense

This commit is contained in:
Benjamin Neff 2016-03-08 03:11:34 +01:00
parent 57ed20719f
commit c64eb0f838

View file

@ -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)