Sha256: 6db433be87b80215bcadb54719a225b5d666063dba13eb4a1d3a1060c40273ea

Contents?: true

Size: 859 Bytes

Versions: 26

Compression:

Stored size: 859 Bytes

Contents

Given /^the gem "(.*)" is not installed$/ do |gem_name|
  # @see berkshelf/test.rb
  set_env 'MISSING_GEMS', [ENV['MISSING_GEMS'], gem_name].compact.join(',')
end

Then /^the output should contain a warning to suggest supporting the option "(.*?)" by installing "(.*?)"$/ do |option, gem_name|
  step "the output should contain \"This cookbook was generated with --#{option}, however, #{gem_name} is not installed.\nTo make use of --#{option}: gem install #{gem_name}\""
end

Then /^the output should contain a warning to suggest supporting the default for "(.*?)" by installing "(.*?)"$/ do |option, gem_name|
  step "the output should contain \"By default, this cookbook was generated to support #{gem_name}, however, #{gem_name} is not installed.\nTo skip support for #{gem_name}, use --no-#{option}\"\nTo install #{gem_name}: gem install #{gem_name}"
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
berkshelf-2.0.18 features/step_definitions/gem_steps.rb
berkshelf-2.0.17 features/step_definitions/gem_steps.rb
berkshelf-2.0.16 features/step_definitions/gem_steps.rb
berkshelf-2.0.15 features/step_definitions/gem_steps.rb
berkshelf-2.0.14 features/step_definitions/gem_steps.rb
berkshelf-2.0.13 features/step_definitions/gem_steps.rb
berkshelf-2.0.12 features/step_definitions/gem_steps.rb
berkshelf-2.0.11 features/step_definitions/gem_steps.rb
berkshelf-2.0.10 features/step_definitions/gem_steps.rb
berkshelf-2.0.9 features/step_definitions/gem_steps.rb
berkshelf-2.0.8 features/step_definitions/gem_steps.rb
berkshelf-2.0.7 features/step_definitions/gem_steps.rb
berkshelf-2.0.6 features/step_definitions/gem_steps.rb
berkshelf-2.0.5 features/step_definitions/gem_steps.rb
berkshelf-2.0.4 features/step_definitions/gem_steps.rb
berkshelf-1.4.6 features/step_definitions/gem_steps.rb
berkshelf-2.0.3 features/step_definitions/gem_steps.rb
berkshelf-2.0.1 features/step_definitions/gem_steps.rb
berkshelf-2.0.0 features/step_definitions/gem_steps.rb
berkshelf-1.4.5 features/step_definitions/gem_steps.rb