Sha256: bdc806769b259314991ca43e1aa0069797cf01b7fe209609d2b07308a471417c
Contents?: true
Size: 570 Bytes
Versions: 15
Compression:
Stored size: 570 Bytes
Contents
Given /^the community server has the cookbooks?:$/ do |table| table.raw.each do |name, version| version ||= '0.0.0' CommunityZero::RSpec.store.add(CommunityZero::Cookbook.new( name: name, version: version, category: 'Other', )) end end Then /^the community server will( not)? have the cookbooks?:$/ do |negate, table| table.raw.each do |name, version| cookbook = CommunityZero::RSpec.store.find(name, version) if negate expect(cookbook).to be_nil else expect(cookbook).to_not be_nil end end end
Version data entries
15 entries across 15 versions & 2 rubygems