mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 01:26:04 +01:00
Update remaining usages of Smile
/CommentSmile
This commit is contained in:
parent
08e5764bf3
commit
19dcb96dcd
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue