Closed igrep closed 9 years ago
Add stub feature to ClassSpy. Like RSpec's allow_any_instance_of, spy_of_instances(class).stub(...) stubs all methods of a class. Finally fixes https://github.com/igrep/crispy/issues/1!
ClassSpy
allow_any_instance_of
spy_of_instances(class).stub(...)
Other Changes:
SpyBase
Spy
Add stub feature to
ClassSpy
. Like RSpec'sallow_any_instance_of
,spy_of_instances(class).stub(...)
stubs all methods of a class. Finally fixes https://github.com/igrep/crispy/issues/1!Other Changes:
SpyBase
abstracts more part ofClassSpy
andSpy
.