Appease the dog overlords (mostly)

This commit is contained in:
Karina Kwiatek 2023-05-07 17:33:46 +02:00
parent adf294e6cb
commit 9563a586c2
3 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ class Ajax::CommentController < AjaxController
@response[:status] = :okay
@response[:message] = t(".success")
@response[:success] = true
@response[:render] = render_to_string(partial: 'answerbox/comments', locals: { a: answer, comments: })
@response[:render] = render_to_string(partial: "answerbox/comments", locals: { a: answer, comments: })
@response[:count] = answer.comment_count
end

View File

@ -5,7 +5,7 @@ require "rails_helper"
describe "answerbox/_comments.html.haml", type: :view do
subject(:rendered) do
render partial: "answerbox/comments", locals: {
comments:, a:
comments:, a:,
}
end