From 19dcb96dcdf1ed4a84376affc0f262a7b5c8c78f Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 26 Mar 2022 18:59:11 +0100 Subject: [PATCH] Update remaining usages of `Smile`/`CommentSmile` --- app/controllers/static_controller.rb | 2 +- spec/controllers/ajax/smile_controller_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb index 16958be3..abea2047 100644 --- a/app/controllers/static_controller.rb +++ b/app/controllers/static_controller.rb @@ -33,7 +33,7 @@ class StaticController < ApplicationController @questions = Question.count @answers = Answer.count @comments = Comment.count - @smiles = Smile.count + CommentSmile.count + @smiles = Appendable::Reaction.count end def linkfilter diff --git a/spec/controllers/ajax/smile_controller_spec.rb b/spec/controllers/ajax/smile_controller_spec.rb index b3371612..db0e9775 100644 --- a/spec/controllers/ajax/smile_controller_spec.rb +++ b/spec/controllers/ajax/smile_controller_spec.rb @@ -47,7 +47,7 @@ describe Ajax::SmileController, :ajax_controller, type: :controller do end it "does not create a smile" do - expect { subject }.not_to(change { Smile.count }) + expect { subject }.not_to(change { Appendable::Reaction.count }) end include_examples "returns the expected response" @@ -238,7 +238,7 @@ describe Ajax::SmileController, :ajax_controller, type: :controller do end it "does not create a smile" do - expect { subject }.not_to(change { CommentSmile.count }) + expect { subject }.not_to(change { Appendable::Reaction.count }) end include_examples "returns the expected response"