summaryrefslogtreecommitdiff
path: root/spec/unit/search
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/search
parentb5c9c6afdfd83fe3f1bf4c991daffeff94b49750 (diff)
downloadchef-b19b7d000887209f9d8dc1dc6aa468a0497a7391.tar.gz
s/stub!/stub/g
fix deprecation warnings
Diffstat (limited to 'spec/unit/search')
-rw-r--r--spec/unit/search/query_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/search/query_spec.rb b/spec/unit/search/query_spec.rb
index 3f41c142ee..bebb69f111 100644
--- a/spec/unit/search/query_spec.rb
+++ b/spec/unit/search/query_spec.rb
@@ -22,7 +22,7 @@ require 'chef/search/query'
describe Chef::Search::Query do
before(:each) do
@rest = mock("Chef::REST")
- Chef::REST.stub!(:new).and_return(@rest)
+ Chef::REST.stub(:new).and_return(@rest)
@query = Chef::Search::Query.new
end
@@ -38,7 +38,7 @@ describe Chef::Search::Query do
"start" => 0,
"total" => 4
}
- @rest.stub!(:get_rest).and_return(@response)
+ @rest.stub(:get_rest).and_return(@response)
end
it "should accept a type as the first argument" do