spec/shoes/swt/button_spec.rb in shoes-swt-4.0.0.pre5 vs spec/shoes/swt/button_spec.rb in shoes-swt-4.0.0.pre6
- old
+ new
@@ -92,6 +92,13 @@
blk.call
end
subject.click block
end
end
+
+ describe ".text=" do
+ it "sets text on real element" do
+ expect(real).to receive(:text=).with("some text")
+ subject.text = "some text"
+ end
+ end
end