Created
March 12, 2014 18:22
-
-
Save petems/9513104 to your computer and use it in GitHub Desktop.
Puppet test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should return install_options as nil by default" do | |
provider.expects(:execute).with(anything, anything, anything, anything, anything, nil).returns "" | |
provider.install | |
end | |
it "should accept install_options" do | |
resource[:install_options] = "--force" | |
provider.expects(:execute).with(anything, anything, anything, anything, anything, '--force').returns "" | |
provider.install | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment