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

Version Path
stove-5.2.0 features/step_definitions/community_steps.rb
stove-5.1.0 features/step_definitions/community_steps.rb
stove-5.0.0 features/step_definitions/community_steps.rb
stove-4.1.1 features/step_definitions/community_steps.rb
stove-4.1.0 features/step_definitions/community_steps.rb
stove-4.0.0 features/step_definitions/community_steps.rb
stove-3.2.8 features/step_definitions/community_steps.rb
wood-stove-3.2.9000 features/step_definitions/community_steps.rb
stove-3.2.7 features/step_definitions/community_steps.rb
stove-3.2.6 features/step_definitions/community_steps.rb
stove-3.2.5 features/step_definitions/community_steps.rb
stove-3.2.4 features/step_definitions/community_steps.rb
stove-3.2.3 features/step_definitions/community_steps.rb
stove-3.2.2 features/step_definitions/community_steps.rb
stove-3.2.1 features/step_definitions/community_steps.rb