class Swat::Capybara::Config
Constants
- DEFAULT_OPTIONS
Public Class Methods
new(rspec_config, opts = {})
click to toggle source
# File lib/swat/capybara/config.rb, line 13 def initialize(rspec_config, opts = {}) if rspec_config rspec_config.include Swat::Capybara::PrintHelper rspec_config.include Swat::Capybara::Helpers, type: :feature rspec_config.extend Swat::Capybara::RspecSetup rspec_config.formatter = Swat::Capybara::RspecSetup::SwatFormatter end @options = DEFAULT_OPTIONS.merge opts @options[:output] = DEFAULT_OPTIONS[:output].merge(opts[:output] || {}) end
Public Instance Methods
default_pause()
click to toggle source
# File lib/swat/capybara/config.rb, line 29 def default_pause options[:default_pause] end
default_selector()
click to toggle source
# File lib/swat/capybara/config.rb, line 33 def default_selector options[:default_selector] end
min_pause()
click to toggle source
# File lib/swat/capybara/config.rb, line 37 def min_pause options[:min_pause] end
options()
click to toggle source
# File lib/swat/capybara/config.rb, line 25 def options @options end
output()
click to toggle source
# File lib/swat/capybara/config.rb, line 45 def output options[:output] || {} end
tries()
click to toggle source
# File lib/swat/capybara/config.rb, line 41 def tries options[:tries] end