[rspec-users] specs on private methods
francois.wurmus at infopark.de
Tue Jan 8 16:09:40 EST 2008
The send call never expects an object reference as a parameter. Either
it is called on an object or without an object context (i.e. kernel). In
the first case the parameter should contain one of the receiving
object's methods. In the second case the parameter is a kernel method.
But... that's not really an RSpec topic anymore.
Chris Olsen schrieb:
> 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?
More information about the rspec-users