Added configure method to Capybara module

This commit is contained in:
Jonas Nicklas 2010-07-11 13:13:24 +02:00
parent d05cf9b9ec
commit dbfb3ee0e0
2 changed files with 7 additions and 1 deletions

View File

@ -24,6 +24,10 @@ module Capybara
def default_wait_time
@default_wait_time ||= 2
end
def configure
yield self
end
end
autoload :Server, 'capybara/server'

View File

@ -14,6 +14,8 @@ Capybara.default_wait_time = 0 # less timeout so tests run faster
Spec::Runner.configure do |config|
config.before do
Capybara.default_selector = :xpath
Capybara.configure do |config|
config.default_selector = :xpath
end
end
end