I don't have any code as this is just a hypothetical question, but how would you go about accessing and manipulating instance variables in rspec?
For instance if you had a @counter variable in your initialize method inside of a class, how could you write a test saying that if @counter is a certain number, then a certain method should return true. And if it equals a different number, then that method should return false.