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/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 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:



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

def config
  @config ||= Configuration.new
end

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

Yield configuration object.

Yields:

  • (config)

    Yield configuration object.

Yield Parameters:



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

def configure
  yield config if block_given?
end

.rootPath

Return path to features directory.

Returns:

  • (Path)

    Feature directory.



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

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.



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

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