summaryrefslogtreecommitdiff
path: root/spec/unit/provider/group
diff options
context:
space:
mode:
authortylercloke <tyler@opscode.com>2012-11-05 13:25:00 -0800
committertylercloke <tyler@opscode.com>2012-11-05 16:07:55 -0800
commitd0238d6ff8a32b10a76ae8ec059c8794d30ed6f3 (patch)
treed74d5d390e1ba9732e3ce04b042c58b694ebed34 /spec/unit/provider/group
parent926726fb40f738fa7d0c1c7944c8c3350a1694e8 (diff)
downloadchef-d0238d6ff8a32b10a76ae8ec059c8794d30ed6f3.tar.gz
Finished refactoring converge and updated tests
so that converge and converge! are no longer a method in the provider and why_run, respectively. There is instead set_updated_status in provider. Everything is now converged in why_run's add_action, so neither of the converge methods should ever need to be called. Updated tests to reflect this. Removed all calls to converge, and replaced with set_updated_status only for tests that are looking at the update status of a provider, where the converge behavior has been mocked out.
Diffstat (limited to 'spec/unit/provider/group')
-rw-r--r--spec/unit/provider/group/groupadd_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/group/groupadd_spec.rb b/spec/unit/provider/group/groupadd_spec.rb
index f08e14f99b..5e07da59b4 100644
--- a/spec/unit/provider/group/groupadd_spec.rb
+++ b/spec/unit/provider/group/groupadd_spec.rb
@@ -132,7 +132,7 @@ describe Chef::Provider::Group::Groupadd do
describe "modify_group_members" do
it "should raise an error when calling modify_group_members" do
- lambda { @provider.modify_group_members ; @provider.converge }.should raise_error(Chef::Exceptions::Group, "you must override modify_group_members in #{@provider.to_s}")
+ lambda { @provider.modify_group_members }.should raise_error(Chef::Exceptions::Group, "you must override modify_group_members in #{@provider.to_s}")
end
end