0 How to test a private method in rspec Since you cannot access a private method directly, in order to test a private method, you can make use of the 'send' method that is available on all objects. @obj = MyClass.new result = @obj.send(:my_private_method, arguments) expect(....) rails 10 testing 8 rspec 2 Please enable JavaScript to view the comments powered by Disqus.