Sha256: 6a3be5e91fe1c2d212af53a3bcc87f52acd0bc405266527e49a3a691d24fdd26
Contents?: true
Size: 849 Bytes
Versions: 54
Compression:
Stored size: 849 Bytes
Contents
module Cucumber # The base class for configuring settings for a Cucumber run. class Configuration def self.default new end def self.parse(argument) return new(argument) if argument.is_a?(Hash) argument end def initialize(user_options = {}) @options = default_options.merge(user_options) end def dry_run? @options[:dry_run] end def guess? @options[:guess] end def strict? @options[:strict] end def expand? @options[:expand] end def paths @options[:paths] end def autoload_code_paths @options[:autoload_code_paths] end private def default_options { :autoload_code_paths => ['features/support', 'features/step_definitions'] } end end end
Version data entries
54 entries across 52 versions & 11 rubygems