From 37aec4f58113a65951a2e2f723e5564fa1cc10bf Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Fri, 1 Jan 2010 18:45:30 +0100 Subject: [PATCH] Reduce timeout for specs so they run faster --- spec/capybara_spec.rb | 4 ---- spec/spec_helper.rb | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/capybara_spec.rb b/spec/capybara_spec.rb index 3814befc..f50c2254 100644 --- a/spec/capybara_spec.rb +++ b/spec/capybara_spec.rb @@ -9,10 +9,6 @@ describe Capybara do Capybara.default_wait_time = 2 end - it "should default to 2 seconds" do - Capybara.default_wait_time.should == 2 - end - it "should be changeable" do Capybara.default_wait_time = 5 Capybara.default_wait_time.should == 5 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a867f416..93dccfd9 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -18,3 +18,5 @@ require 'session_with_headers_support_spec' require 'session_without_headers_support_spec' alias :running :lambda + +Capybara.default_wait_time = 1 # less timeout so tests run faster