Sha256: ba7b646ef5ce497b9866ade23b32994dd04ebd8d121d6f86fa3ba137a5dc04f4

Contents?: true

Size: 591 Bytes

Versions: 26

Compression:

Stored size: 591 Bytes

Contents

Then /^the exit status should be "(.+)"$/ do |name|
  error = name.split("::").reduce(Berkshelf) { |klass, id| klass.const_get(id) }
  expect(last_command_started).to have_exit_status(error.status_code)
end

Then /^the results should have the cookbooks:$/ do |cookbooks|
  list = last_command_started.stdout
  cookbooks.split("\n").each do |cookbook|
    expect(list).to include(cookbook)
  end
end

Then /^the results should each start with "(.+)"$/ do |prefix|
  list = last_command_started.stdout
  list.split("\n").each do |cookbook|
    expect(cookbook).to start_with(prefix)
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
berkshelf-5.6.5 features/step_definitions/cli_steps.rb
berkshelf-5.6.4 features/step_definitions/cli_steps.rb
berkshelf-5.6.3 features/step_definitions/cli_steps.rb
berkshelf-5.6.2 features/step_definitions/cli_steps.rb
berkshelf-5.6.1 features/step_definitions/cli_steps.rb
berkshelf-5.6.0 features/step_definitions/cli_steps.rb