title: is it possible to stub an instance variable in rspec in a non controller test?
body: <p>I would normally set an instance variable in my controller, but I am unit testing a model method which depends on the value of the instance variable set in the controller.</p>
  
  <p>Using rspec, is it possible to stub or set this instance variable for the test? </p>
  
  <p>Everything I've seen so far makes it seem that I can only stub/set an instance variable from controller or view tests, not model tests.</p>