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

Version Path
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/lib/cucumber/configuration.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/lib/cucumber/configuration.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/lib/cucumber/configuration.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/lib/cucumber/configuration.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/lib/cucumber/configuration.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/lib/cucumber/configuration.rb
casecumber-1.0.2.1 lib/cucumber/configuration.rb
casecumber-1.2.1.cb2 lib/cucumber/configuration.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/lib/cucumber/configuration.rb
cucumber-1.2.1 lib/cucumber/configuration.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/configuration.rb
ftl-0.2.0 vendor/bundle/gems/cucumber-1.2.0/lib/cucumber/configuration.rb
cucumber-1.2.0 lib/cucumber/configuration.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/configuration.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/configuration.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/configuration.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/configuration.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/configuration.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/configuration.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/configuration.rb