spec/vcr/library_hooks/fakeweb_spec.rb in vcr-2.3.0 vs spec/vcr/library_hooks/fakeweb_spec.rb in vcr-2.4.0

- old
+ new

@@ -123,9 +123,14 @@ after(:each) { ::WebMock = orig_webmock_constant } it 'does not raise an error' do run_hook # should not raise an error end + + it "warns about FakeWeb deprecation" do + ::Kernel.should_receive(:warn).with("WARNING: VCR's FakeWeb integration is deprecated and will be removed in VCR 3.0.") + run_hook + end end end describe "when a SocketError occurs" do before(:each) do