Aws-sdk gem causing error only on CI

My tests around uploading an image to s3 fail only on when they run on circle.

I’m using webmock to mock the request for the upload itself but I am getting this exception when the tests run on circle

WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'}

You can stub this request with the following snippet:

stub_request(:get, "").
  with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'}).
  to_return(:status => 200, :body => "", :headers => {})