Sha256: 924495b68ebeec59319d4858f0d9f4a90726939e02131dd65a034169923f4467

Contents?: true

Size: 1.36 KB

Versions: 5

Compression:

Stored size: 1.36 KB

Contents

require 'gurke/version'

module Gurke
  require 'gurke/feature'
  require 'gurke/background'
  require 'gurke/scenario'
  require 'gurke/step'
  require 'gurke/tag'

  require 'gurke/run_list'
  require 'gurke/feature_list'

  require 'gurke/dsl'
  require 'gurke/builder'
  require 'gurke/configuration'
  require 'gurke/runner'
  require 'gurke/steps'
  require 'gurke/step_definition'
  require 'gurke/reporter'

  module Reporters
    require 'gurke/reporters/null_reporter'
    require 'gurke/reporters/default_reporter'
    require 'gurke/reporters/team_city_reporter'
  end

  class Error < StandardError; end
  class StepPending < Error; end
  class StepAmbiguous < Error; end

  class << self
    #
    # Return path to features directory.
    #
    # @return [Path] Feature directory.
    #
    def root
      @root ||= Pathname.new(Dir.getwd).join('features')
    end

    # Return configuration object.
    #
    # @return [Configuration] Configuration object.
    #
    def config
      @config ||= Configuration.new
    end

    # Yield configuration object.
    #
    # @yield [config] Yield configuration object.
    # @yieldparam config [Configuration] Configuration object.
    #
    def configure
      yield config if block_given?
    end

    # @api private
    def world
      @world ||= const_set('World', Module.new)
    end
  end
end

::Module.send :include, Gurke::DSL

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gurke-2.4.1 lib/gurke.rb
gurke-2.4.0 lib/gurke.rb
gurke-2.3.0 lib/gurke.rb
gurke-2.2.2 lib/gurke.rb
gurke-2.2.1 lib/gurke.rb