spec/spec_helper_spec.rb in watirsplash-0.2.0 vs spec/spec_helper_spec.rb in watirsplash-0.2.1

- old
+ new

@@ -16,19 +16,19 @@ text_field.should exist text_field.should be_visible end it "has wait_until" do - result = wait_until {sleep 0.1; true} + lambda {wait_until(0.5) {sleep 0.1; true}}.should_not raise_exception + lambda {wait_until(0.5) {sleep 0.1; false}}.should raise_exception(Watir::Exception::TimeOutException) + end + + it "has wait_until?" do + result = wait_until? {sleep 0.1; true} result.should be_true - result = wait_until(0.5) {sleep 0.1; false} + result = wait_until?(0.5) {sleep 0.1; false} result.should be_false - end - - it "has wait_until!" do - lambda {wait_until!(0.5) {sleep 0.1; true}}.should_not raise_exception - lambda {wait_until!(0.5) {sleep 0.1; false}}.should raise_exception(Watir::Exception::TimeOutException) end it "has file_path methods formatter" do file_name = "blah.temp" ext = File.extname(file_name) \ No newline at end of file