Module: KalibroGem::KalibroCucumberHelpers

Defined in:
lib/kalibro_gem/kalibro_cucumber_helpers.rb,
lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb

Defined Under Namespace

Classes: Configuration

Class Method Summary collapse

Class Method Details

.configurationObject



36
37
38
# File 'lib/kalibro_gem/kalibro_cucumber_helpers.rb', line 36

def KalibroCucumberHelpers.configuration
  @configuration
end

.configure(&config_block) ⇒ Object



24
25
26
# File 'lib/kalibro_gem/kalibro_cucumber_helpers.rb', line 24

def KalibroCucumberHelpers.configure(&config_block)
  config_block.call(@configuration)
end

.configure_from_yml(file_path) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/kalibro_gem/kalibro_cucumber_helpers.rb', line 28

def KalibroCucumberHelpers.configure_from_yml(file_path)
  configuration = YAML.load(File.open("features/support/kalibro_cucumber_helpers.yml"))

  configuration["kalibro_cucumber_helpers"].each do |config, value|
    @configuration.send("#{config}=", value)
  end
end