Don’t fool with Kernel call. Just use OpenURI.open_uri.

OpenURI.expects(:open_uri).returns("some content")
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Technorati
  • Twitter
  • RSS

Post to Twitter