spec/alert_spec.rb in watir-webdriver-0.5.0 vs spec/alert_spec.rb in watir-webdriver-0.5.1

- old
+ new

@@ -1,10 +1,10 @@ require File.expand_path("watirspec/spec_helper", File.dirname(__FILE__)) require "watir-webdriver/extensions/alerts" describe "AlertHelper" do before do - browser.goto("file://" + File.expand_path("html/alerts.html", File.dirname(__FILE__))) + browser.goto WatirSpec.url_for("alerts.html", :needs_server => true) end it "handles an alert()" do returned = browser.alert do browser.button(:id => "alert").click