title: How to use sorbet type checking with RSpec mocks?
body: <p>I have a method that that has a sorbet type signature definition.
  While trying to mock this method in tests using RSpec I get a type mismatch error. 
  I'm trying to understand how I can resolve this issue and can add RSpec based tests without affecting sorbet type check.</p>
  
  <pre class="lang-rb prettyprint-override"><code>sig {params(login_context: LoginContext, company_id: String).returns(T::Boolean)}
    def populate_dummy_data(login_context, company_id)
  </code></pre>
  
  <p>Test Code:</p>
  
  <pre class="lang-rb prettyprint-override"><code>@login_context = double(LoginContext, :requester =&gt; @requester) # Creates an instance of type Rspec::Mocks::double
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>expected no Exception, got #&lt;TypeError: Parameter ‘login_context’: Expected type LoginContext, got type RSpec::Mocks::Double wit...a_populator_spec.rb:42
  </code></pre>