Skip to content

Instantly share code, notes, and snippets.

@trekr5
Created March 16, 2015 11:39
Show Gist options
  • Save trekr5/a00d8622300fb83a954f to your computer and use it in GitHub Desktop.
Save trekr5/a00d8622300fb83a954f to your computer and use it in GitHub Desktop.
local_users_spec.rb
describe 'core::local_users' do
before (stub_resources)
let (:chef_run) do
ChefSpec::SoloRunner.new do |node, server|
env = Chef::Environment.new
env.name 'my_environment'
env.override_attributes(encrypted_data_bag_secret_key_path: 'C:/tmp/vagrant-chef-2/encrypted_data_bag_secret')
allow(server).to receive(:encrypted_data_bag_secret_key_path).and_return(env.override_attributes)
end.converge('core::local_users')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment