diff options
author | Adam Edwards <adamed@opscode.com> | 2014-01-10 11:34:45 -0800 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2014-01-13 12:32:40 -0800 |
commit | 3a99ebf69ed76cd48365061a2dc5d057be0d2456 (patch) | |
tree | d63712bd70f45c2f4c3aed938c0b4a3e7652d31d | |
parent | 3c72cf95e9289387d315a13982c1799313e1f156 (diff) | |
download | chef-3a99ebf69ed76cd48365061a2dc5d057be0d2456.tar.gz |
Reuse of examples via include_examples for more sensible rspec output
-rw-r--r-- | spec/functional/resource/group_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/resource/group_spec.rb b/spec/functional/resource/group_spec.rb index f30bcf7a89..ae0ca2542e 100644 --- a/spec/functional/resource/group_spec.rb +++ b/spec/functional/resource/group_spec.rb @@ -350,7 +350,7 @@ downthestreetalwayshadagoodsmileonhisfacetheoldmanwalkingdownthestreeQQQQQQ" } let(:computer_domain) { ohai[:kernel]['cs_info']['domain'].split('.')[0] } let(:spec_members){ ["#{computer_domain}\\Domain Admins", "#{computer_domain}\\Domain Users", "#{computer_domain}\\Domain Computers"] } - it_behaves_like "correct group management" + include_examples "correct group management" end end @@ -379,7 +379,7 @@ downthestreetalwayshadagoodsmileonhisfacetheoldmanwalkingdownthestreeQQQQQQ" } let(:computer_domain) { ohai[:kernel]['cs_info']['domain'].split('.')[0] } let(:spec_members){ ["#{computer_domain}\\Domain Admins", "#{computer_domain}\\Domain Users", "#{computer_domain}\\Domain Computers"] } - it_behaves_like "correct group management" + include_examples "correct group management" end it_behaves_like "an expected invalid domain error case" |