Install ruby-sinon-rails by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-sinon-rails
Description:
provides sinon.js via asset pipeline for rails apps
sinon.js simplifies java script testing. It is a really helpful library when you want to unit test your code. It supports spies, stubs, and mocks. . sinon-rails makes it easy for rails applications to use sinon.js.
Homepage: http://github.com/travisjeffery/sinon-rails
Version: 1.9.0-1
Section: universe/ruby