Sha256: 5a689470a8c40f5daa39ca426b21ab030c57dd14f5e14c10a6912c6acca9f589
Contents?: true
Size: 894 Bytes
Versions: 1
Compression:
Stored size: 894 Bytes
Contents
Given /^I am using the community server$/ do set_env('STOVE_ENDPOINT', CommunityZero::RSpec.url) set_env('STOVE_CLIENT', 'stove') set_env('STOVE_KEY', File.expand_path('../../support/stove.pem', __FILE__)) end Given /^the community server has the cookbooks?:$/ do |table| table.raw.each do |name, version, category| version ||= '0.0.0' category ||= 'Other' CommunityZero::RSpec.store.add(CommunityZero::Cookbook.new( name: name, version: version, category: category, )) end end Then /^the community server will( not)? have the cookbooks?:$/ do |negate, table| table.raw.each do |name, version, category| cookbook = CommunityZero::RSpec.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stove-3.0.0 | features/step_definitions/community_steps.rb |