Module: Gurke

Defined in:
lib/gurke.rb,
lib/gurke/cli.rb,
lib/gurke/dsl.rb,
lib/gurke/tag.rb,
lib/gurke/step.rb,
lib/gurke/steps.rb,
lib/gurke/world.rb,
lib/gurke/runner.rb,
lib/gurke/builder.rb,
lib/gurke/feature.rb,
lib/gurke/version.rb,
lib/gurke/reporter.rb,
lib/gurke/run_list.rb,
lib/gurke/scenario.rb,
lib/gurke/background.rb,
lib/gurke/feature_list.rb,
lib/gurke/configuration.rb,
lib/gurke/step_definition.rb

Defined Under Namespace

Modules: DSL, Reporters, Steps, VERSION, World Classes: Background, Builder, CLI, Configuration, Error, Feature, FeatureList, Reporter, RunList, Runner, Scenario, Step, StepAmbiguous, StepDefinition, StepPending, Tag

Class Method Summary collapse

Class Method Details

.configConfiguration

Return configuration object.

Returns:



50
51
52
# File 'lib/gurke.rb', line 50

def config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Yield configuration object.

Yields:

  • (config)

    Yield configuration object.

Yield Parameters:



59
60
61
# File 'lib/gurke.rb', line 59

def configure
  yield config if block_given?
end

.rootPath

Return path to features directory.

Returns:

  • (Path)

    Feature directory.



42
43
44
# File 'lib/gurke.rb', line 42

def root
  @root ||= Pathname.new(Dir.getwd).join('features')
end

.worldObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



64
65
66
# File 'lib/gurke.rb', line 64

def world
  @world ||= World
end