Skip to content

Instantly share code, notes, and snippets.

@petecheslock
Created February 7, 2014 17:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save petecheslock/5f6d34ff05680b2b5ec5 to your computer and use it in GitHub Desktop.
Save petecheslock/5f6d34ff05680b2b5ec5 to your computer and use it in GitHub Desktop.
describe "my_recipe::default" do
before(:each) do
Chef::EncryptedDataBagItem.stub(:load).with("my_dbag", "credentials").and_return(
"password" => "12345",
"another_thing" => "12345",
"ssh_key" => "my_keyz"
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment