[rspec-users] specs on private methods

David Chelimsky dchelimsky at gmail.com
Tue Jan 8 19:31:50 EST 2008


On Jan 8, 2008 2:47 PM, Chris Olsen <lists at ruby-forum.com> wrote:
> Will obj.send(:method) work in 1.9 or is it saying that the send call
> requires 2 params, the method and the object reference?

In 1.9 you can say obj.send!(:method) even if :method is private.
obj.send(:method) will not work for private methods.


More information about the rspec-users mailing list