Sha256: ca4be257ad3ef8567715632f843f6958e40d6749a9ef1c5ebc6865d88cbc14bf

Contents?: true

Size: 640 Bytes

Versions: 19

Compression:

Stored size: 640 Bytes

Contents

Given /^I have a default Chef config$/ do
  path = tmp_path.join('chef_config').to_s
  generate_chef_config(path)
  ENV['BERKSHELF_CHEF_CONFIG'] = path
end

Then /^a Berkshelf config file should exist and contain:$/ do |table|
  config = Berkshelf::Config.from_file(Berkshelf::Config.path)
  table.raw.each do |key, value|
    expect(config.get_attribute(key)).to eq(value)
  end
end

Then /^a Berkshelf config file should exist at "(.+)" and contain:$/ do |path, table|
  config = Berkshelf::Config.from_file(File.expand_path("tmp/aruba/#{path}"))
  table.raw.each do |key, value|
    config.get_attribute(key).should eql(value)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
berkshelf-2.0.18 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.17 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.16 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.15 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.14 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.13 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.12 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.11 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.10 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.9 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.8 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.7 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.6 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.5 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.4 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.3 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.1 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.0 features/step_definitions/configure_cli_steps.rb
berkshelf-2.0.0.beta features/step_definitions/configure_cli_steps.rb