"Real HTTP connections are disabled" error when trying test OmniAuth with RSpec

12,903

As dfedde implies, WebMock blocks HTTP requests in integration tests, but you can either stub the request or call WebMock.allow_net_connect! to configure the tests to run as normal. Check out Trying to get selenium working in rails 3 - "WebMock::NetConnectNotAllowedError" or https://github.com/bblimke/webmock for details.

Share:
12,903

Related videos on Youtube

ironsand
Author by

ironsand

こんにちは。言語関係のサービスを作りたく勉強中です。よろしくお願いします。

Updated on September 14, 2022

Comments