Sha256: 435c77f769bfd100c3bfc78dc10ddf32766dd36ffe2871e72e08e8a453097910
Contents?: true
Size: 593 Bytes
Versions: 5
Compression:
Stored size: 593 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
5 entries across 5 versions & 1 rubygems