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

后端 未结 8 1501
遥遥无期
遥遥无期 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:37

    In my specific case my problem was in evergreen (javascript rspec).

    I added:

    WebMock.disable_net_connect! :allow_localhost => true
    

    To my environments/env*.rb because evergreen doesn't load rspec helpers.

提交回复
热议问题