1
設置簡單:Rspec元數據:vcr應該只用於標記的示例,而是適用於每個示例?
#spec_helper.rb
VCR.configure do |c|
c.cassette_library_dir = File.expand_path '../vcr_cassettes', __FILE__
c.hook_into :fakeweb
c.ignore_localhost = true
c.configure_rspec_metadata!
end
RSpec.configure do |c|
c.treat_symbols_as_metadata_keys_with_true_values = true
end
我期待沒有被標註爲:vcr
例子不會受到影響,但似乎並不如此。我收到「VCR不知道請求...」的錯誤。
我錯過了什麼?