Created
December 6, 2014 19:47
-
-
Save dblessing/76a1093f1aceee95f44c to your computer and use it in GitHub Desktop.
Wrapper rspec
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
require 'spec_helper' | |
describe 'bke_base::user' do | |
before do | |
stub_data_bag('users_ops').and_return(['op1']) | |
stub_data_bag_item('users_ops', 'op1').and_return( | |
id: 'op1', | |
uid: 1001, | |
comment: 'Operations User 1', | |
groups: %W{wheel, op1} | |
) | |
end | |
let(:chef_run) { ChefSpec::SoloRunner.converge(described_recipe) } | |
subject { chef_run } | |
it { is_expected.to create_user('op1') } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment