Sha256: 0a68056afdd10c713a0a63e0158a24aa45f1bdc33e7465d0b07410373310ab10

Contents?: true

Size: 838 Bytes

Versions: 18

Compression:

Stored size: 838 Bytes

Contents

Given /^the gem "(.*)" is not installed$/ do |gem_name|
  Gem::Specification.stub(:find_by_name).with(gem_name).and_raise(Gem::LoadError)
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

18 entries across 18 versions & 1 rubygems

Version Path
berkshelf-3.1.5 features/step_definitions/gem_steps.rb
berkshelf-3.1.4 features/step_definitions/gem_steps.rb
berkshelf-3.1.3 features/step_definitions/gem_steps.rb
berkshelf-3.1.2 features/step_definitions/gem_steps.rb
berkshelf-3.1.1 features/step_definitions/gem_steps.rb
berkshelf-3.1.0 features/step_definitions/gem_steps.rb
berkshelf-3.0.1 features/step_definitions/gem_steps.rb
berkshelf-3.0.0 features/step_definitions/gem_steps.rb
berkshelf-3.0.0.rc1 features/step_definitions/gem_steps.rb
berkshelf-3.0.0.beta9 features/step_definitions/gem_steps.rb
berkshelf-3.0.0.beta8 features/step_definitions/gem_steps.rb
berkshelf-3.0.0.beta7 features/step_definitions/gem_steps.rb
berkshelf-3.0.0.beta6 features/step_definitions/gem_steps.rb
berkshelf-3.0.0.beta5 features/step_definitions/gem_steps.rb
berkshelf-3.0.0.beta4 features/step_definitions/gem_steps.rb
berkshelf-3.0.0.beta3 features/step_definitions/gem_steps.rb
berkshelf-3.0.0.beta2 features/step_definitions/gem_steps.rb
berkshelf-3.0.0.beta1 features/step_definitions/gem_steps.rb