spec/spec_helper_spec.rb in watirsplash-1.4.3 vs spec/spec_helper_spec.rb in watirsplash-2.0.0.rc1
- old
+ new
@@ -1,11 +1,10 @@
describe WatirSplash::SpecHelper do
it "opens browser automatically" do
- @browser.should exist
- @browser.url.should == "about:blank"
- @browser.title.should == ""
+ WatirSplash::Util.formatter.browser.should exist
+ WatirSplash::Util.formatter.browser.url.should == "about:blank"
end
it "redirects method calls to Watir::Browser" do
goto "http://dl.dropbox.com/u/2731643/WatirSplash/test.html"
url.should =~ /test/
@@ -21,6 +20,6 @@
paragraph = p(:class => "my_pg")
paragraph.should exist
paragraph.text.should == "This is a paragraph!"
end
-end
\ No newline at end of file
+end