spec/conf_spec.rb in squib-0.11.0 vs spec/conf_spec.rb in squib-0.12.0
- old
+ new
@@ -34,6 +34,14 @@
it 'helps Andy get full coverage with a test on to_s' do
conf = Squib::Conf.load conf('empty.yml')
expect(conf.to_s).to start_with 'Conf: '
end
+ it 'allows Squib.configure to override yml' do
+ Squib.configure img_dir: 'color'
+ c = Squib::Conf.load conf('basic.yml')
+ expect(c.img_dir).to eq 'color'
+ # reset our state to be nice
+ Squib::USER_CONFIG.clear
+ end
+
end