'Class methods: describe "#my_class_method" or describe "#self.my_class_method"?
I try to have best-practice-conforming RSpec tests, and I know that when testing an instance method, one can do
describe "#my_instance_method" do ... end
But what about class methods? Should I add a self. to it in the description string?
describe "#self.my_class_method" do ... end
Thanks for your opinion!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
