Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Commit

Permalink
Add a unit test for solo clean
Browse files Browse the repository at this point in the history
  • Loading branch information
tmatilai committed Apr 11, 2013
1 parent 5552e2d commit e49c2b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/solo_clean_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
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
Expand Down

0 comments on commit e49c2b8

Please sign in to comment.