Install ruby-spy by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-spy
Description:
simple modern mocking library using the spy pattern
Spy is a mocking library that was made for the modern age. It uses that uses the spy pattern and checks method's existence and arity: Spy by default will raise an error if you attempt to stub a method that doesn't exist or call the stubbed method with the wrong arity.
Homepage: https://github.com/ryanong/spy
Version: 0.4.3-1
Section: universe/ruby