cookbooks/test-kitchen/recipes/ruby.rb in test-kitchen-0.5.0 vs cookbooks/test-kitchen/recipes/ruby.rb in test-kitchen-0.5.2

- old
+ new

@@ -19,20 +19,9 @@ project = node.run_state['project'] [File.join(project['test_root'], 'Gemfile'), File.join(project['test_root'], 'test', 'Gemfile')].each do |gemfile_path| - # TODO - remove this when test-kitchen is public - ruby_block "remove test-kitchen entry in Gemfile - #{gemfile_path}" do - block do - require 'chef/util/file_edit' - fe = Chef::Util::FileEdit.new(gemfile_path) - fe.search_file_delete_line(/gem ['"]test-kitchen['"]/) - fe.write_file - end - only_if { File.exists?(gemfile_path) } - end - # ensure we blow away Gemfile.lock file "#{gemfile_path}.lock" do action :delete end