Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed deprecation warning message to use the correct method name.

  • Loading branch information...
commit ea723212b5a6ffe3d0249f82308cce9d5c80256f 1 parent 7bdd7ab
@myronmarston authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/vcr/deprecations.rb
  2. +1 −1  spec/deprecations_spec.rb
View
2  lib/vcr/deprecations.rb
@@ -10,7 +10,7 @@ def destroy_cassette!(*args)
end
def with_cassette(*args, &block)
- warn "WARNING: VCR.with_cassette! is deprecated. Instead, use: VCR.use_cassette."
+ warn "WARNING: VCR.with_cassette is deprecated. Instead, use: VCR.use_cassette."
use_cassette(*args, &block)
end
View
2  spec/deprecations_spec.rb
@@ -5,7 +5,7 @@
subject { VCR }
deprecated :create_cassette!, :insert_cassette, "WARNING: VCR.create_cassette! is deprecated. Instead, use: VCR.insert_cassette."
deprecated :destroy_cassette!, :eject_cassette, "WARNING: VCR.destroy_cassette! is deprecated. Instead, use: VCR.eject_cassette."
- deprecated :with_cassette, :use_cassette, "WARNING: VCR.with_cassette! is deprecated. Instead, use: VCR.use_cassette."
+ deprecated :with_cassette, :use_cassette, "WARNING: VCR.with_cassette is deprecated. Instead, use: VCR.use_cassette."
end
describe VCR::Cassette do
Please sign in to comment.
Something went wrong with that request. Please try again.