To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!More about adding a collaborator
stubbing class methods
In order to spec code that depends on Rails or other APIs that make
liberal use of class methods, I want to stub class methods
and see that the classes are restored after each spec run.
- stubbing class method
- the Possum class
- I stub method to return gives
- invoking invocation returns returns
- I reset Gimme
- method no longer returns gives
Scenarios: the anything matcher with a one-argument method method gives invocation returns crawl_to(anything) '…' crawl_to(Cat.new) '…' crawl_to(anything) '…' crawl_to(Dog.new) '…' crawl_to(anything) '…' crawl_to(nil) '…'
Last published over 7 years ago by searls.