happiness (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) happiness

faradayを含むgemをアップデートしたらWebMock::NetConnectNotAllowedErrorになった

webmock使っているテストが失敗した

     WebMock::NetConnectNotAllowedError:
       Real HTTP connections are disabled. Unregistered request: POST https://fcm.googleapis.com/fcm/send with body

request headerの下記の部分を修正したら直った

-      'User-Agent' => 'Faraday v1.0.1',
+      'User-Agent' => 'Faraday v1.8.0',