I use rspec on rails. I want to test model.
My model has this method:
open is Kernel method. How do I mock it? Kernel.expects and
Kernel.should_receive and Kernel.stub! do no good.
To make it more clear, I am looking for something like this:
it "should processing rails.com" do
My.blabla('rails.com').should == 'result of self.blabla'