1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Move default_selector out of session. Closes #11

This commit is contained in:
Jonas Nicklas 2009-12-03 18:50:03 +01:00
parent b187879751
commit 3f9950e09d
2 changed files with 5 additions and 9 deletions

View file

@ -9,6 +9,11 @@ module Capybara
class << self class << self
attr_accessor :debug, :asset_root attr_accessor :debug, :asset_root
attr_writer :default_selector
def default_selector
@default_selector ||= :xpath
end
def log(message) def log(message)
puts "[capybara] #{message}" if debug puts "[capybara] #{message}" if debug

View file

@ -1,13 +1,4 @@
module Capybara module Capybara
class << self
attr_writer :default_selector
def default_selector
@default_selector ||= :xpath
end
end
class Session class Session
FIELDS_PATHS = { FIELDS_PATHS = {