Update remaining usages of `Smile`/`CommentSmile`

This commit is contained in:
Karina Kwiatek 2022-03-26 18:59:11 +01:00 committed by Karina Kwiatek
parent 08e5764bf3
commit 19dcb96dcd
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class StaticController < ApplicationController
@questions = Question.count @questions = Question.count
@answers = Answer.count @answers = Answer.count
@comments = Comment.count @comments = Comment.count
@smiles = Smile.count + CommentSmile.count @smiles = Appendable::Reaction.count
end end
def linkfilter def linkfilter

View File

@ -47,7 +47,7 @@ describe Ajax::SmileController, :ajax_controller, type: :controller do
end end
it "does not create a smile" do it "does not create a smile" do
expect { subject }.not_to(change { Smile.count }) expect { subject }.not_to(change { Appendable::Reaction.count })
end end
include_examples "returns the expected response" include_examples "returns the expected response"
@ -238,7 +238,7 @@ describe Ajax::SmileController, :ajax_controller, type: :controller do
end end
it "does not create a smile" do it "does not create a smile" do
expect { subject }.not_to(change { CommentSmile.count }) expect { subject }.not_to(change { Appendable::Reaction.count })
end end
include_examples "returns the expected response" include_examples "returns the expected response"