spec/unit/project_spec.rb in omnibus-4.0.0.rc.2 vs spec/unit/project_spec.rb in omnibus-4.0.0

- old
+ new

@@ -221,9 +221,17 @@ it 'retrieves the things set through #overrides' do subject.override(:thing, version: '6.6.6') expect(subject.override(:thing)[:version]).to eq('6.6.6') end + + it 'symbolizes #overrides' do + subject.override('thing', version: '6.6.6') + [:thing, 'thing'].each do |thing| + expect(subject.override(thing)).not_to be_nil + end + expect(subject.override(:thing)[:version]).to eq('6.6.6') + end end describe '#ohai' do before { stub_ohai(platform: 'ubuntu', version: '12.04') }