def test_request WebMock.allow_net_connect! VCR.turned_off do response = Hashie::Mash.new(MyApi::Api.new('param').endpoint_call.json) assert_equal 0, response.number assert_equal 1234, response.total end end