Sha256: a712dd4f1c06741c22bd1aa4cf5b5bd760bc45d3f664c90f69a72381d147810d

Contents?: true

Size: 873 Bytes

Versions: 24

Compression:

Stored size: 873 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

    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

24 entries across 22 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/cucumber-1.3.18/lib/cucumber/configuration.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/cucumber-1.3.18/lib/cucumber/configuration.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/cucumber-1.3.16/lib/cucumber/configuration.rb
cucumber-1.3.20 lib/cucumber/configuration.rb
cucumber-1.3.19 lib/cucumber/configuration.rb
cucumber-1.3.18 lib/cucumber/configuration.rb
cucumber-1.3.17 lib/cucumber/configuration.rb
cucumber-1.3.16 lib/cucumber/configuration.rb
cucumber-1.3.15 lib/cucumber/configuration.rb
cucumber-1.3.14 lib/cucumber/configuration.rb
cucumber-1.3.13 lib/cucumber/configuration.rb
cucumber-1.3.12 lib/cucumber/configuration.rb
cucumber-1.3.11 lib/cucumber/configuration.rb
cucumber-1.3.10 lib/cucumber/configuration.rb
cucumber-1.3.9 lib/cucumber/configuration.rb
cucumber-1.3.8 lib/cucumber/configuration.rb
cucumber-1.3.7 lib/cucumber/configuration.rb
cucumber-1.3.6 lib/cucumber/configuration.rb
cucumber-1.3.5 lib/cucumber/configuration.rb
cucumber-1.3.4 lib/cucumber/configuration.rb