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:
@@ -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
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
img_dir: bw
|
||||
|
||||
Reference in New Issue
Block a user