diff --git a/spec/response_code_matchers_spec.rb b/spec/response_code_matchers_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/response_code_matchers_spec.rb
+++ b/spec/response_code_matchers_spec.rb
@@ -56,7 +56,7 @@ describe ResponseCodeMatchers do
   ].each_slice(2) do |code, matcher|
     describe "##{matcher}" do
       let(:response) do
-        mock(:code => code)
+        double(:code => code)
       end
 
       it "matches http response code #{code}" do
@@ -67,7 +67,7 @@ describe ResponseCodeMatchers do
 
   context "when receiver responds to #status" do
     let(:receiver) do
-      mock(:status => 406)
+      double(:status => 406)
     end
 
     it "calls original receiver.xxx?" do
@@ -77,7 +77,7 @@ describe ResponseCodeMatchers do
 
   context "when receiver does not have a method #code" do
     let(:receiver) do
-      mock(:accepted? => true)
+      double(:accepted? => true)
     end
 
     it "calls original receiver.xxx?" do
Replace deprecated methods

- #mock => #double