Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed deprecation warning message to use the correct method name.

  • Loading branch information...
commit ea723212b5a6ffe3d0249f82308cce9d5c80256f 1 parent 7bdd7ab
Myron Marston authored March 24, 2010
2  lib/vcr/deprecations.rb
@@ -10,7 +10,7 @@ def destroy_cassette!(*args)
10 10
   end
11 11
 
12 12
   def with_cassette(*args, &block)
13  
-    warn "WARNING: VCR.with_cassette! is deprecated.  Instead, use: VCR.use_cassette."
  13
+    warn "WARNING: VCR.with_cassette is deprecated.  Instead, use: VCR.use_cassette."
14 14
     use_cassette(*args, &block)
15 15
   end
16 16
 
2  spec/deprecations_spec.rb
@@ -5,7 +5,7 @@
5 5
     subject { VCR }
6 6
     deprecated :create_cassette!,  :insert_cassette, "WARNING: VCR.create_cassette! is deprecated.  Instead, use: VCR.insert_cassette."
7 7
     deprecated :destroy_cassette!, :eject_cassette,  "WARNING: VCR.destroy_cassette! is deprecated.  Instead, use: VCR.eject_cassette."
8  
-    deprecated :with_cassette,     :use_cassette,    "WARNING: VCR.with_cassette! is deprecated.  Instead, use: VCR.use_cassette."
  8
+    deprecated :with_cassette,     :use_cassette,    "WARNING: VCR.with_cassette is deprecated.  Instead, use: VCR.use_cassette."
9 9
   end
10 10
 
11 11
   describe VCR::Cassette do

0 notes on commit ea72321

Please sign in to comment.
Something went wrong with that request. Please try again.