title: any_instance should_receive not working correctly
body: <p>I have a code like this:</p>
  
  <pre><code>@dns = "#{params[:domain].split('/').reverse.join('.')}.#{params[:zone]}"
  w = Whois::Client.new
  @r = w.query(@dns)
  </code></pre>
  
  <p>with a route:</p>
  
  <pre><code>match "domains/:zone/*domain" =&gt; "domains#show"
  </code></pre>
  
  <p>I'm using <a href="http://www.ruby-whois.org/" rel="noreferrer">Whois Gem</a></p>
  
  <p>and I want to test is, so I have a test:</p>
  
  <pre><code>it "should query 'google.com.ua' from /ua/com/google" do
      get :show, :zone =&gt; 'ua', :domain =&gt; 'com/google'
      dns = "google.com.ua"
      Whois::Client.any_instance.should_receive(:query).with(dns)
  end
  </code></pre>
  
  <p>And as a result I get:</p>
  
  <pre><code>Exactly one instance should have received the following message(s) but didn't: query
  </code></pre>
  
  <p>Where can be the problem? I'm 100% sure that <code>.query</code> is called</p>