Sha256: eb17eaa0c1948aa3c1424f5e8a847c0f91a29bc94eb060eadbebb60419562544
Contents?: true
Size: 928 Bytes
Versions: 13
Compression:
Stored size: 928 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 randomize? @options[:randomize] 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 def snippet_type @options[:snippet_type] end private def default_options { :autoload_code_paths => ['features/support', 'features/step_definitions'] } end end end
Version data entries
13 entries across 13 versions & 1 rubygems