spec/watir_ie_spec.rb in watirsplash-1.1.2 vs spec/watir_ie_spec.rb in watirsplash-1.2.0

- old
+ new

@@ -14,11 +14,11 @@ FileUtils.rm file_path rescue nil end end it "allows only absolute paths" do - lambda {link(:text => "Download").save_as("download.zip")}.should raise_exception + expect {link(:text => "Download").save_as("download.zip")}.to raise_exception end end end context "Watir::FileField" do @@ -30,10 +30,10 @@ wait_until(5) {field.value =~ /#{File.basename(__FILE__)}/} end it "doesn't allow to use with non existing files" do field = file_field(:id => "upload") - lambda {field.set "upload.zip"}.should raise_exception + expect {field.set "upload.zip"}.to raise_exception end end end end