[ <% comment_json = [] %> <% comments.each_with_index do |comment, index| %> <% comment_json << Fixture.new('issues/comment.json.erb', id: comment[:id] || index + 1, author: comment[:author], pull_request_number: pull_request_number, repo_owner: repo_owner, repo_name: repo_name, body: comment[:body] || 'Hmmm...', created_at: comment[:created_at] || '2011-04-14T16:00:49Z' ).to_s %> <% end %> <%= comment_json.join(", ") %> ]