Permalink
Browse files

Minor spec fix.

  • Loading branch information...
jarib committed Dec 31, 2011
1 parent 6ab4f5e commit fad4afb4d40402b69244d661a3577459ae1f40c2
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/browser_spec.rb
View
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require File.expand_path("../watirspec/spec_helper", __FILE__)
describe "Browser" do
@@ -285,7 +287,9 @@
browser.goto(WatirSpec.files + "/timeout.html")
browser.div(:id, "change").click
browser.wait_while { browser.contains_text("Trigger change") }
- browser.div(:id, "change").text.should == "all done"
+ browser.wait_until {
+ browser.div(:id, "change").text == "all done"
+ }
end
it "returns the value returned from the block" do

0 comments on commit fad4afb

Please sign in to comment.