F
Fernando Perez
Hi,
In a Rails app, I often find myself having to write
expectswhatever).at_least_once.returns("some_value"), so it clutters
my test and I simply ditch expects() in favor of stubs() which won't
yell at me because some method was called more than once.
What do you usually use?
In a Rails app, I often find myself having to write
expectswhatever).at_least_once.returns("some_value"), so it clutters
my test and I simply ditch expects() in favor of stubs() which won't
yell at me because some method was called more than once.
What do you usually use?