Trying to get selenium working in rails 3 - “WebMock::NetConnectNotAllowedError”

后端 未结 8 1498
遥遥无期
遥遥无期 2020-12-13 14:10

I\'m trying to use selenium for the first time in a rails 3 app. (I\'ve used it before with rails 2). I\'m in an rvm which of course has its own gemset.

I first r

8条回答
  •  星月不相逢
    2020-12-13 14:36

    Good suggestions here. Another, more fine-tuneable, solution:

    WebMock.disable_net_connect!(
      allow: [
        'localhost',
        'dynamo:8000',
        'pact-broker:81'
      ]
    )
    

    Works especially well for whitelisting docker-compose containers!

提交回复
热议问题