spec/watir_ie_spec.rb in watirsplash-1.0.0 vs spec/watir_ie_spec.rb in watirsplash-1.1.0
- old
+ new
@@ -1,12 +1,12 @@
-describe Watir::IE do
+describe "Watir::IE", :if => WatirSplash::Util.framework == :watir do
before :each do
goto "http://dl.dropbox.com/u/2731643/WatirSplash/test.html"
end
- context Watir::Element do
+ context "Watir::Element" do
context "#save_as" do
it "saves file with the browser" do
begin
file_path = link(:text => "Download").save_as(File.path("download.zip"))
File.read(file_path).should == "this is a 'zip' file!"
@@ -19,10 +19,10 @@
lambda {link(:text => "Download").save_as("download.zip")}.should raise_exception
end
end
end
- context Watir::FileField do
+ context "Watir::FileField" do
context "#set" do
it "sets the file to upload with the browser" do
field = file_field(:id => "upload")
file_path = File.expand_path(__FILE__)
field.set file_path