spec/shoes/swt/check_spec.rb in shoes-swt-4.0.0.pre6 vs spec/shoes/swt/check_spec.rb in shoes-swt-4.0.0.pre7

- old
+ new

@@ -2,17 +2,28 @@ describe Shoes::Swt::Check do include_context "swt app" let(:text) { "TEXT" } - let(:dsl) { double('dsl', - :app => shoes_app, :visible? => true, - :left => 42, :top => 66, - :element_left => 42, element_top: 66, - :width => 100, :width= => true, - :element_width => 100, element_height: 200, - :height => 200, :height= => true, - blk: block, contents: []) } + + let(:dsl) do + double('dsl', app: shoes_app, + gui: real, + visible?: true, + left: 42, + top: 66, + element_left: 42, + element_top: 66, + width: 100, + :width= => true, + element_width: 100, + element_height: 200, + height: 200, + :height= => true, + blk: block, + contents: []) + end + let(:block) { proc {} } let(:real) { double('real').as_null_object } subject { Shoes::Swt::Check.new dsl, parent }