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
-
.config ⇒ Configuration
Return configuration object.
-
.configure {|config| ... } ⇒ Object
Yield configuration object.
-
.root ⇒ Path
Return path to features directory.
- .world ⇒ Object private
Class Method Details
.config ⇒ Configuration
Return configuration object.
49 50 51 |
# File 'lib/gurke.rb', line 49 def config @config ||= Configuration.new end |
.configure {|config| ... } ⇒ Object
Yield configuration object.
58 59 60 |
# File 'lib/gurke.rb', line 58 def configure yield config if block_given? end |
.root ⇒ Path
Return path to features directory.
41 42 43 |
# File 'lib/gurke.rb', line 41 def root @root ||= Pathname.new(Dir.getwd).join('features') end |
.world ⇒ Object
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 |