features/step_definitions/gem_steps.rb in berkshelf-2.0.18 vs features/step_definitions/gem_steps.rb in berkshelf-3.0.0.beta1

- old
+ new

@@ -1,7 +1,6 @@ Given /^the gem "(.*)" is not installed$/ do |gem_name| - # @see berkshelf/test.rb - set_env 'MISSING_GEMS', [ENV['MISSING_GEMS'], gem_name].compact.join(',') + 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