Sha256: 0368f43d6c623b320ec875e5ca215196b5a2cbe1ccb6f3773267dd121e04bb19
Contents?: true
Size: 812 Bytes
Versions: 13
Compression:
Stored size: 812 Bytes
Contents
require 'spec_helper' describe VCR::Middleware::CassetteArguments do describe '#name' do it 'initially returns nil' do subject.name.should be_nil end it 'stores the given value, returning it when no arg is given' do subject.name :value1 subject.name.should == :value1 subject.name :value2 subject.name.should == :value2 end end describe '#options' do it 'initially returns an empty hash' do subject.options.should == {} end it 'merges the given hash options, returning them when no arg is given' do subject.options :record => :new_episodes subject.options.should == { :record => :new_episodes } subject.options :erb => true subject.options.should == { :record => :new_episodes, :erb => true } end end end
Version data entries
13 entries across 13 versions & 1 rubygems