Update remaining usages of `Smile`/`CommentSmile`
This commit is contained in:
parent
08e5764bf3
commit
19dcb96dcd
|
@ -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 New Issue