Sha256: 98608b33210b85ce64a70449225e54c351f24ca3a54a78066d4df0a38df499fd

Contents?: true

Size: 861 Bytes

Versions: 51

Compression:

Stored size: 861 Bytes

Contents

Given /^the gem "(.*)" is not installed$/ do |gem_name|
  allow(Gem::Specification).to receive(: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

51 entries across 51 versions & 1 rubygems

Version Path
berkshelf-7.0.7 features/step_definitions/gem_steps.rb
berkshelf-6.3.4 features/step_definitions/gem_steps.rb
berkshelf-7.0.6 features/step_definitions/gem_steps.rb
berkshelf-7.0.5 features/step_definitions/gem_steps.rb
berkshelf-6.3.3 features/step_definitions/gem_steps.rb
berkshelf-7.0.4 features/step_definitions/gem_steps.rb
berkshelf-7.0.3 features/step_definitions/gem_steps.rb
berkshelf-7.0.2 features/step_definitions/gem_steps.rb
berkshelf-7.0.1 features/step_definitions/gem_steps.rb
berkshelf-7.0.0 features/step_definitions/gem_steps.rb
berkshelf-6.3.2 features/step_definitions/gem_steps.rb
berkshelf-6.3.1 features/step_definitions/gem_steps.rb
berkshelf-6.3.0 features/step_definitions/gem_steps.rb
berkshelf-6.2.2 features/step_definitions/gem_steps.rb
berkshelf-6.2.1 features/step_definitions/gem_steps.rb
berkshelf-6.2.0 features/step_definitions/gem_steps.rb
berkshelf-6.1.1 features/step_definitions/gem_steps.rb
berkshelf-6.1.0 features/step_definitions/gem_steps.rb
berkshelf-6.0.1 features/step_definitions/gem_steps.rb
berkshelf-6.0.0 features/step_definitions/gem_steps.rb