Sha256: 95f71a1715c9a3e8d10fa96cce1c42aa019b72e57d2fd4b586758dd80cf05f4b

Contents?: true

Size: 1.31 KB

Versions: 9

Compression:

Stored size: 1.31 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'
  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

9 entries across 9 versions & 1 rubygems

Version Path
gurke-2.1.0 lib/gurke.rb
gurke-2.0.3 lib/gurke.rb
gurke-2.0.2 lib/gurke.rb
gurke-2.0.1 lib/gurke.rb
gurke-2.0.0 lib/gurke.rb
gurke-2.0.0.dev.1.b25 lib/gurke.rb
gurke-2.0.0.dev.1.b24 lib/gurke.rb
gurke-2.0.0.dev.1.b23 lib/gurke.rb
gurke-2.0.0.dev.1.b22 lib/gurke.rb