Reputation: 4106
Inside rspec test, i have to check that my class method is private or public. How i can do this?
Upvotes: 1
Views: 201
Reputation: 44705
Try:
expect(MyClass.private_methods).to include :my_method
Upvotes: 2