I'm probably doing something very simply wrong, but I'm not quite sure what it is. I am porting a rails 2 application to rails 3. This application uses webmock for a bunch of tests.
If i turn on
gem 'webmock'
In my Gemfile, the tests pass, but when I start the server and run the application locally, clicking on the controller that should make the web call causes an error:
WebMock::NetConnectNotAllowedError
If I DO NOT include the line in my Gemfile, then when I run the application locally, it works fine, but the test fails:
`require': no such file to load
When this line gets into my test_helper.rb
require 'webmock'
I assume that something is wrong with me, but I didnβt hit the right Google spell to shed light on it. Where did I do, am I lost my way?
Thanks.
bikesandcode
source share