VCRで何も録画できません。次のような設定があります。
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
そしてテスト:
describe SomeClass do
describe '#foo', vcr: true do
it 'should do http request', do
expect(subject.do_request).to be_true
end
end
end
その仕様を実行すると、次のようになります。
.HTTPI executes HTTP GET using the net_http adapter
SOAP request: (...)
VCRなしとまったく同じです。残念ながら、ドキュメントには何もありません。ここで報告された同様の問題を見つけましたが、要求httpi
しても何の効果もありません。これを機能させるにはどうすればよいですか?