Scott Taylor wrote: > Use Kernel.stub!(:`, "wget..."), and use Kernel.send(:`, "wget") > instead of literal backticks.
Interestingly this doesn't quite work, but I used the principle. The Kernel module is mixed into Object so when you use `shellcommand... ` you can intercept the call on the object itself. So I was able to: @my_obj.stub!(:`) ...in the before block and @my_obj.should_receive(:`, "wget...") ...in the test and use the short form: `wget... ` ...in the actual method. Thanks for your help chaps. -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users