Adds missing spec to comment

This commit is contained in:
kikito
2015-11-02 14:01:40 +01:00
parent 73c306a673
commit f0e9005332

View File

@@ -111,4 +111,10 @@ describe Comment do
.to change { [comment.reload.updated_at, comment.author.updated_at] }
end
end
describe "#author_id?" do
it "returns the user's id" do
expect(comment.author_id).to eq(comment.user.id)
end
end
end