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