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
|
@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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue