From 599424181c395c40be567d93cc0cdf7634ce6c18 Mon Sep 17 00:00:00 2001 From: Steven Parkes Date: Tue, 2 Mar 2010 14:37:02 -0800 Subject: [PATCH] better name for predicate --- lib/capybara/driver/base.rb | 2 +- spec/session_with_javascript_support_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/capybara/driver/base.rb b/lib/capybara/driver/base.rb index effb1bd8..bf34728b 100644 --- a/lib/capybara/driver/base.rb +++ b/lib/capybara/driver/base.rb @@ -37,7 +37,7 @@ class Capybara::Driver::Base def cleanup! end - def has_shortcircuit_timeout + def has_shortcircuit_timeout? false end diff --git a/spec/session_with_javascript_support_spec.rb b/spec/session_with_javascript_support_spec.rb index 7f3f613f..74b9bd19 100644 --- a/spec/session_with_javascript_support_spec.rb +++ b/spec/session_with_javascript_support_spec.rb @@ -97,7 +97,7 @@ shared_examples_for "session with javascript support" do begin @session.wait_until { false } rescue Capybara::TimeoutError; end - if @session.driver.has_shortcircuit_timeout + if @session.driver.has_shortcircuit_timeout? (Time.now - start).should be_close(0, 0.1) else (Time.now - start).should be_close(0.2, 0.1)