I want to get json from some url in rake task. how I can achive that?
I used this code
require 'open-uri'
content = open(my_url).read
logger.info content
but it throw WebMock::NetConnectNotAllowedError
it saying stub this request but how I can get responce from stub_request dont know
from controller it works fine