Rspec expect to receive and not return -


how can expect object receive method call , blacklist return values in rspec ? like

expect(happy_character).to receive(:how_are_you?).and_return_anything_but('i sad') 

if call expect(...).not_to apply method call , not return value ?


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -