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

ios - Change Storyboard View using Seague -

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -