spec/shoes/swt/radio_group_spec.rb in shoes-swt-4.0.0.pre3 vs spec/shoes/swt/radio_group_spec.rb in shoes-swt-4.0.0.pre4

- old
+ new

@@ -13,11 +13,11 @@ end end describe "#add" do it "monitors selection" do - expect(real).to receive(:add_selection_listener) + expect(real).to receive(:add_selection_listener) subject.add(radio) end describe 'after adding a button' do before :each do @@ -55,15 +55,15 @@ let(:radio_selected) { double('radio', real: real_selected) } before :each do subject.add(radio) subject.add(radio_selected) end - after :each do - subject.select_only_one_radio_in_group(radio_selected) + after :each do + subject.select_only_one_radio_in_group(radio_selected) end it "turns on the selected radio" do - expect(real_selected).to receive(:set_selection).with(true) + expect(real_selected).to receive(:set_selection).with(true) end it "turns off the non-selected radios" do expect(real).to receive(:set_selection).with(false) end