spec/symbiont/enclosers_spec.rb in symbiont-0.1.5 vs spec/symbiont/enclosers_spec.rb in symbiont-0.1.6

- old
+ new

@@ -12,13 +12,13 @@ web_object.should_not be_nil web_object.should be_instance_of Symbiont::WebObjects::TextField end it "should wait for a condition to be true" do - watir_browser.should_receive(:wait_until).with(5, "not quick enough") - watir_definition.wait_for(5, "not quick enough") + watir_browser.should_receive(:wait_until).with(5, "some condition") + watir_definition.wait_for("some condition", 5) end - + it "should handle alert message boxes" do watir_browser.should_receive(:wd).twice.and_return(watir_browser) watir_browser.should_receive(:execute_script).twice watir_definition.will_alert do end