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-7.0.7 features/step_definitions/cli_steps.rb
berkshelf-6.3.4 features/step_definitions/cli_steps.rb
berkshelf-7.0.6 features/step_definitions/cli_steps.rb
berkshelf-7.0.5 features/step_definitions/cli_steps.rb
berkshelf-6.3.3 features/step_definitions/cli_steps.rb
berkshelf-7.0.4 features/step_definitions/cli_steps.rb
berkshelf-7.0.3 features/step_definitions/cli_steps.rb
berkshelf-7.0.2 features/step_definitions/cli_steps.rb
berkshelf-7.0.1 features/step_definitions/cli_steps.rb
berkshelf-7.0.0 features/step_definitions/cli_steps.rb
berkshelf-6.3.2 features/step_definitions/cli_steps.rb
berkshelf-6.3.1 features/step_definitions/cli_steps.rb
berkshelf-6.3.0 features/step_definitions/cli_steps.rb
berkshelf-6.2.2 features/step_definitions/cli_steps.rb
berkshelf-6.2.1 features/step_definitions/cli_steps.rb
berkshelf-6.2.0 features/step_definitions/cli_steps.rb
berkshelf-6.1.1 features/step_definitions/cli_steps.rb
berkshelf-6.1.0 features/step_definitions/cli_steps.rb
berkshelf-6.0.1 features/step_definitions/cli_steps.rb
berkshelf-6.0.0 features/step_definitions/cli_steps.rb