Install ruby-mocha by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-mocha
Description:
Mocking and stubbing library for Ruby
Mocha is a mocking and stubbing library with JMock/SchMock syntax, which allows mocking and stubbing of methods on real (non-mock) classes. Mocking and stubbing are techniques used to improve unit testing.
Homepage: http://gofreerange.com/mocha/docs
Version: 1.3.0-1
Section: universe/ruby