Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capybara default_wait_time - should default to 2 seconds - should be changeable
- Loading branch information
Lenny Marks
committed
Dec 31, 2009
1 parent
af81f74
commit eb82466
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require File.expand_path('spec_helper', File.dirname(__FILE__)) | ||
|
||
require 'capybara' | ||
|
||
describe Capybara do | ||
|
||
describe 'default_wait_time' do | ||
after 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 | ||
end | ||
end | ||
|
||
end |