Don’t fool with Kernel call. Just use OpenURI.open_uri.
OpenURI.expects(:open_uri).returns("some content")
Don’t fool with Kernel call. Just use OpenURI.open_uri.
OpenURI.expects(:open_uri).returns("some content")
OpenURI.expects(:open_uri).returns( StringIO.new(‘{“name”:”Foo”}’) )