spec/spec_helper_spec.rb in watirsplash-0.2.2 vs spec/spec_helper_spec.rb in watirsplash-0.2.3
- old
+ new
@@ -41,15 +41,22 @@
native_file_path(file_path(file_name)).should =~ Regexp.new(Regexp.escape(expected_path).gsub("\\.\\*", ".*"))
end
it "has download_file method" do
begin
- goto "http://dl.dropbox.com/u/2731643/misc/download.html"
+ goto "http://dl.dropbox.com/u/2731643/WatirSplash/download.html"
link(:text => "Download").click_no_wait
file = download_file("download.zip")
File.read(file).should == "this is a 'zip' file!"
ensure
FileUtils.rm file
end
+ end
+
+ it "redirects usages of method 'p' to Watir::IE#p instead of Kernel.p" do
+ goto "http://dl.dropbox.com/u/2731643/WatirSplash/elements.html"
+ paragraph = p(:class => "my_pg")
+ paragraph.should exist
+ paragraph.text.should == "This is a paragraph!"
end
end
\ No newline at end of file