[rspec-users] Stubbing times: #from_now et al.
nick at deadorange.com
Wed Nov 5 14:59:45 EST 2008
On 2008-11-05, at 14:42, David Chelimsky wrote:
> The problem is there is no Singleton Class for 1, probably an
> efficiency in Ruby since 1 is, itself, a Singleton.
> All of these frameworks try to manipulate methods on the object's
> singleton class. So no mocking/stubbing on Fixnums. Apparently.
> Not much help - sorry.
That was a good explanation. Thanks, mate. At least now I know not to
chase this path any further!
More information about the rspec-users