Hi,
I've answered my own question. I changed before :all do; to just before
do (which is the same as before :each do) and everything works fine. I'm
not overly concerned that stubbing has to occur prior to each example
method, but why is this the case? If this behaviour is intended (which
I'm gues
Hi,
I'm trying to stub File.open and whenever I do, rspec blows up with the
following error message (undefined method `add' for nil:NilClass), which
seems to happen because method __add in class Proxy is calling #add on
global $rspec_mocks, which in turn is nil.
Can someone explain what I'm doi