dsl: add Squib.configure

I ended up adding this one on a whim, but it feels like a long time coming. We need cleaner support for Rakefiles, and this is a good step toward that I think.
This commit is contained in:
Andy Meneely
2016-11-17 21:11:12 -05:00
parent 738aab3997
commit 56b5a711e4
6 changed files with 51 additions and 2 deletions
+8
View File
@@ -36,4 +36,12 @@ describe Squib::Conf do
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
+1
View File
@@ -0,0 +1 @@
img_dir: bw