Sha256: f46045ebef5542b38b7e208a15f04bb7fd382606e54365185ebee81dbb0bff83

Contents?: true

Size: 897 Bytes

Versions: 17

Compression:

Stored size: 897 Bytes

Contents

Given /^the gem "(.*)" is not installed$/ do |gem_name|
  # Because aruba is out of process, need to figure out how to mock the Gem::Specification.find_by_name call to pretend gems are not available.
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 --#{option}\"\nTo install #{gem_name}: gem install #{gem_name}"
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
berkshelf-1.4.0.rc1 features/step_definitions/gem_steps.rb
berkshelf-1.3.1 features/step_definitions/gem_steps.rb
berkshelf-1.3.0.rc1 features/step_definitions/gem_steps.rb
berkshelf-1.2.1 features/step_definitions/gem_steps.rb
berkshelf-1.2.0.rc1 features/step_definitions/gem_steps.rb
berkshelf-1.1.6 features/step_definitions/gem_steps.rb
berkshelf-1.1.5 features/step_definitions/gem_steps.rb
berkshelf-1.1.4 features/step_definitions/gem_steps.rb
berkshelf-1.1.3 features/step_definitions/gem_steps.rb
berkshelf-1.1.2 features/step_definitions/gem_steps.rb
berkshelf-1.1.1 features/step_definitions/gem_steps.rb
berkshelf-1.1.0 features/step_definitions/gem_steps.rb
berkshelf-1.1.0.rc1 features/step_definitions/gem_steps.rb
berkshelf-1.0.4 features/step_definitions/gem_steps.rb
berkshelf-1.0.3 features/step_definitions/gem_steps.rb
berkshelf-1.0.2 features/step_definitions/gem_steps.rb
berkshelf-1.0.0 features/step_definitions/gem_steps.rb