Module: FluentCommandBuilder::Cucumber::V12

Defined in:
lib/fluent_command_builder/command_builders/cucumber_12.rb

Defined Under Namespace

Classes: Cucumber

Constant Summary collapse

VERSION =
'1.2'
@@config =
CommandBuilderConfig.new FluentCommandBuilder::Cucumber::COMMAND_NAME, VERSION

Instance Method Summary collapse

Instance Method Details

#configure_cucumber {|@@config| ... } ⇒ Object

Yields:

  • (@@config)


12
13
14
15
16
# File 'lib/fluent_command_builder/command_builders/cucumber_12.rb', line 12

def configure_cucumber
  yield @@config
  @@config.validate_path
  @@config.validate_version
end

#cucumber(feature = nil) {|b| ... } ⇒ Object

Yields:

  • (b)


17
18
19
20
21
22
# File 'lib/fluent_command_builder/command_builders/cucumber_12.rb', line 17

def cucumber(feature=nil)
  b = UnderlyingBuilder.new @@config
  c = Cucumber.new(b, feature)
  yield b if block_given?
  c
end