I am trying the RR double framework for the first time and am a bit stuck on how to convert my existing RSpec stubs. I see how I can use double graphs in the documentation for the same result as RSpec's stub_chain, but how do create a stub/mock that just responds to defined methods?
For instance, in RSpec, I could do admin = stub(admin?: true)
and then use admin. Can I do this in RR, without having to first have admin defined? admin = User.new; stub(admin).admin? { true }
I was able to do something like admin = stub; stub(admin).admin? { true }
, but that double stub seems odd.