Rspec + savon + vcr not recording

Viewed 1795

I can't record anything with vcr, I have such setup:

spec_helper.rb

require 'vcr'
VCR.configure do |c|
  c.cassette_library_dir = 'spec/cassettes'
  c.hook_into :webmock
  c.configure_rspec_metadata!
  c.default_cassette_options = { :record => :new_episodes }
end

And test:

describe SomeClass do
  describe '#foo', vcr: true do
    it 'should do http request', do
      expect(subject.do_request).to be_true
    end
  end
end

Running that spec results in:

.HTTPI executes HTTP GET using the net_http adapter
SOAP request: (...)

Exactly like without vcr. Unfortunately there's nothing in documentation. I found similar issue reported here, but requiring httpi doesn't give any effect. What should be done to get this working?

1 Answers
Related