spec/shoes/swt/button_spec.rb in shoes-swt-4.0.0.pre6 vs spec/shoes/swt/button_spec.rb in shoes-swt-4.0.0.pre7
- old
+ new
@@ -26,13 +26,13 @@
expect(real).to receive(:set_text).with(text)
subject
end
describe 'size' do
- let(:width) {50}
- let(:height) {20}
- let(:size) {double 'real size', x: width, y: height}
- let(:real) {double('button real', size: size, pack: true).as_null_object}
+ let(:width) { 50 }
+ let(:height) { 20 }
+ let(:size) { double 'real size', x: width, y: height }
+ let(:real) { double('button real', size: size, pack: true).as_null_object }
before :each do
allow(::Swt::Widgets::Button).to receive(:new) { real }
end