Sha256: 9cf4d801c0a1df95577122b63781de62c93ba5d42f9ff2493c800ddf80f96209

Contents?: true

Size: 640 Bytes

Versions: 2

Compression:

Stored size: 640 Bytes

Contents

Given /^the Community Site has the cookbooks?:$/ do |table|
  table.raw.each do |name, version, category|
    version  ||= '0.0.0'
    category ||= 'Other'

    CommunityZero::Cookbook.create({
      name:     name,
      version:  version,
      category: category,
    })
  end
end

Then /^the Community Site will( not)? have the cookbooks?:$/ do |negate, table|
  table.raw.each do |name, version, category|
    cookbook = CommunityZero::Store.find(name, version)

    if negate
      expect(cookbook).to be_nil
    else
      expect(cookbook).to_not be_nil
      expect(cookbook.category).to eql(category) if category
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stove-1.1.2 features/step_definitions/community_site_steps.rb
stove-1.1.0 features/step_definitions/community_site_steps.rb