lib/simple_websocket_vcr.rb in simple-websocket-vcr-0.0.5 vs lib/simple_websocket_vcr.rb in simple-websocket-vcr-0.0.6

- old
+ new

@@ -72,9 +72,11 @@ # Use the specified cassette for either recording the real communication or replaying it during the tests. # @param name [String] the cassette # @param options [Hash] options for the cassette # @option options [Symbol] :record if set to :none there will be no recording # @option options [Symbol] :erb a sub-hash with variables used for ERB substitution in given cassette + # @option options [Boolean] :reverse_substitution if true, the values of :erb hash will be replaced by their names in + # the cassette. It's turned-off by default. def use_cassette(name, options = {}) fail ArgumentError, '`VCR.use_cassette` requires a block.' unless block_given? self.cassette = Cassette.new(name, options) yield cassette.save