> @@ -110,4 +111,47 @@ def present?
>        end
>      end
>    end
> +
> +  describe "Watir.default_timeout" do
> +    before do
> +      Watir.default_timeout = 1
> +      
> +      browser.goto WatirSpec.url_for("wait.html", :needs_server => true)
> +    end  
> +    
> +    context "when no timeout is specified" do
> +      it "is used by Wait#until" do
> +        expect{Wait.until() { false }}.to \
> +        raise_error(Watir::Wait::TimeoutError, "timed out after 1 seconds")
> +      end

:+1: 

---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/pull/230/files#r7875255
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to