summaryrefslogtreecommitdiff
path: root/spec/unit/run_list
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:17:47 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:17:47 -0800
commitb19b7d000887209f9d8dc1dc6aa468a0497a7391 (patch)
tree68d1eb6c136df20c2800f1dddb4e2c1ed5d75a42 /spec/unit/run_list
parentb5c9c6afdfd83fe3f1bf4c991daffeff94b49750 (diff)
downloadchef-b19b7d000887209f9d8dc1dc6aa468a0497a7391.tar.gz
s/stub!/stub/g
fix deprecation warnings
Diffstat (limited to 'spec/unit/run_list')
-rw-r--r--spec/unit/run_list/run_list_expansion_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/run_list/run_list_expansion_spec.rb b/spec/unit/run_list/run_list_expansion_spec.rb
index 012ee9ea31..907e3d3985 100644
--- a/spec/unit/run_list/run_list_expansion_spec.rb
+++ b/spec/unit/run_list/run_list_expansion_spec.rb
@@ -66,7 +66,7 @@ describe Chef::RunList::RunListExpansion do
describe "after applying a role" do
before do
- @expansion.stub!(:fetch_role).and_return(Chef::Role.new)
+ @expansion.stub(:fetch_role).and_return(Chef::Role.new)
@expansion.inflate_role('rage', "role[base]")
end
@@ -89,7 +89,7 @@ describe Chef::RunList::RunListExpansion do
@second_role.run_list('recipe[crabrevenge]')
@second_role.default_attributes({'foo' => 'boo'})
@second_role.override_attributes({'baz' => 'bux'})
- @expansion.stub!(:fetch_role).and_return(@first_role, @second_role)
+ @expansion.stub(:fetch_role).and_return(@first_role, @second_role)
@expansion.expand
end
@@ -111,7 +111,7 @@ describe Chef::RunList::RunListExpansion do
describe "after expanding a run list with a non existant role" do
before do
- @expansion.stub!(:fetch_role) { @expansion.role_not_found('crabrevenge', "role[base]") }
+ @expansion.stub(:fetch_role) { @expansion.role_not_found('crabrevenge', "role[base]") }
@expansion.expand
end