ruby - How can I configure Rspec to raise error when stubbing or mocking non-existing methods? -


Is there any way that I can configure RSPC to increase an error when I use the stub / non-existing method I'm trying to fake

So, if I have a class

  class A and FF and end  

and I write something like this:

  Describe that a description '#foo' does this expects fuses (subject). To get (Foo2) # fire subject.foo end end end  

Then the RSPC will fail on the first line

  Hope (topic ... .  

By telling me that : foo2 is not a message that the answer to topic .

This functionality and more recently was introduced in RSPC 3 (currently in beta).


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -