Sha256: 003e98b2638d2516ec08bef6014f6fdb4de833709d9e98f3cac5c59e68254ee1

Contents?: true

Size: 766 Bytes

Versions: 20

Compression:

Stored size: 766 Bytes

Contents

World(Berkshelf::RSpec::ChefAPI)

Given /^the Chef server does not have the cookbooks:$/ do |cookbooks|
  cookbooks.raw.each do |name, version|
    purge_cookbook(name, version)
  end
end

Given /^the Chef server has cookbooks:$/ do |cookbooks|
  cookbooks.raw.each do |name, version|
    purge_cookbook(name, version)
    cb_path = generate_cookbook(tmp_path, name, version)
    upload_cookbook(cb_path)
  end
end

Then /^the Chef server should have the cookbooks:$/ do |cookbooks|
  cookbooks.raw.each do |name, version|
    server_has_cookbook?(name, version).should be_true
  end
end

Then /^the Chef server should not have the cookbooks:$/ do |cookbooks|
  cookbooks.raw.each do |name, version|
    server_has_cookbook?(name, version).should be_false
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
berkshelf-1.4.6 features/step_definitions/chef_server_steps.rb
berkshelf-1.4.5 features/step_definitions/chef_server_steps.rb
berkshelf-1.4.4 features/step_definitions/chef_server_steps.rb
berkshelf-1.4.3 features/step_definitions/chef_server_steps.rb
berkshelf-1.4.2 features/step_definitions/chef_server_steps.rb
berkshelf-1.4.1 features/step_definitions/chef_server_steps.rb
berkshelf-1.4.0 features/step_definitions/chef_server_steps.rb
berkshelf-1.4.0.rc1 features/step_definitions/chef_server_steps.rb
berkshelf-1.3.1 features/step_definitions/chef_server_steps.rb
berkshelf-1.3.0.rc1 features/step_definitions/chef_server_steps.rb
berkshelf-1.2.1 features/step_definitions/chef_server_steps.rb
berkshelf-1.2.0.rc1 features/step_definitions/chef_server_steps.rb
berkshelf-1.1.6 features/step_definitions/chef_server_steps.rb
berkshelf-1.1.5 features/step_definitions/chef_server_steps.rb
berkshelf-1.1.4 features/step_definitions/chef_server_steps.rb
berkshelf-1.1.3 features/step_definitions/chef_server_steps.rb
berkshelf-1.1.2 features/step_definitions/chef_server_steps.rb
berkshelf-1.1.1 features/step_definitions/chef_server_steps.rb
berkshelf-1.1.0 features/step_definitions/chef_server_steps.rb
berkshelf-1.1.0.rc1 features/step_definitions/chef_server_steps.rb