Displaying 1 result from an estimated 1 matches for "grab_feed".
2007 Oct 19
3
Stubbing a Kernel method?
Is it possible to stub a Kernel method? I''m specifically interested in
the ''open'' method to test some code using open-uri. I''ve tried:
Kernel.should_receive(:open).with(''filename'').and_return(''data'')
However, this doesn''t seem to work. Any suggestions would be appreciated.
--Paul