Better ability to handle per-dsl-method defaults

This commit is contained in:
Andy Meneely
2015-07-12 00:52:34 -04:00
parent f2d693f8ff
commit 25b13fd592
5 changed files with 24 additions and 10 deletions
+10
View File
@@ -15,6 +15,16 @@ describe Squib::Args::Draw do
end
context 'dsl overrides' do
subject(:draw) {Squib::Args::Draw.new(custom_colors, {stroke_width: 0.0})}
it 'works when specified' do
draw.load!({}) # go right to defaults
expect(draw.stroke_width).to eq( [0.0] ) #ordinarily a non-zero according
end
end
context 'validation' do
it 'converts to Cairo options' do