spy icon indicating copy to clipboard operation
spy copied to clipboard

A simple opinionated mocking framework. All the features of rspec-mocks and more in half the code.

Results 5 spy issues
Sort by recently updated
recently updated
newest added

Hello. I am attempting to hook up the Spy gem into the rspec config with the provided snippet and running into the following error whenever trying to run any spec:...

my test code is like below, but it keep saying that ` method 'info' has already been hooked` ``` Spy.on(Rails.logger, [:debug, :info, :error].freeze) ``` ``` Error: xxxx::xxxx: Spy::AlreadyHookedError: # method...

I'm trying to spy on a method that is expecting to receive an ::ActionController::Parameters object. While hash-like, it's not a hash anymore in Rails, and hasn't been for a while...

When mocking module_functions / extend self modules, Spy does not recognize the ownership of the original method and won't re-apply it to the module during teardown. Here is a quick...