Sha256: 0718c8ff5da01a0476abf7f623be5474c8d43f683dea4d7be5e19212ae5c14bc

Contents?: true

Size: 447 Bytes

Versions: 11

Compression:

Stored size: 447 Bytes

Contents

require 'test_helper'
require 'support/validation_helper'

require 'chef/knife/solo_clean'

class SoloCleanTest < TestCase
  include ValidationHelper::ValidationTests

  def test_removes_provision_path
    cmd = command('somehost', '--provisioning-path=/foo/bar')
    cmd.expects(:run_command).with('rm -rf /foo/bar').returns(SuccessfulResult.new)
    cmd.run
  end

  def command(*args)
    knife_command(Chef::Knife::SoloClean, *args)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
knife-solo-0.7.0.pre test/solo_clean_test.rb
knife-solo-0.6.0 test/solo_clean_test.rb
knife-solo-0.4.3 test/solo_clean_test.rb
knife-solo-0.5.1 test/solo_clean_test.rb
knife-solo-0.5.0 test/solo_clean_test.rb
knife-solo-0.4.2 test/solo_clean_test.rb
knife-solo-0.4.1 test/solo_clean_test.rb
knife-solo-0.4.0 test/solo_clean_test.rb
knife-solo-0.3.0 test/solo_clean_test.rb
knife-solo-0.3.0.pre5 test/solo_clean_test.rb
knife-solo-0.3.0.pre4 test/solo_clean_test.rb