← categories / category

Mocking

See on ruby-toolbox ↗

recent from @rubygems

bogus

Create fakes to make your isolated unit tests reliable.

  • 0.1.7 Jul 08 2024 gem.coop system

flexmock

Simple and Flexible Mock Objects for Testing

  • 3.0.2 Aug 11 2025 gem.coop system

minitest-substitute

Substitute values for the duration of a block or a group of tests

  • 1.2.0 Apr 22 2026 gem.coop system

mocha

Mocking and stubbing library

  • 3.1.0 Mar 14 2026 gem.coop system

rr

RR is a test double framework that features a rich selection of double techniques and a terse syntax.

  • 3.1.2 Apr 07 2025 gem.coop system

rspec-mocks

rspec-mocks-4.0.0.beta1

  • 4.0.0.beta1 Feb 18 2026 gem.coop system

spy

A simple modern mocking library that uses the spy pattern and checks method's existence and arity.

  • 1.0.5 Dec 25 2022 gem.coop system

older from @rubygems

cross-stub

Simple cross process stubbing

  • 0.2.4 Nov 09 2010 gem.coop system

facon

Tiny mocking library.

  • 0.5.0 Oct 06 2011 gem.coop system

mock_redis

Redis mock that just lives in memory; useful for testing.

  • 0.9.0 Aug 08 2013 gem.coop system

mocoso

A simple stub & mock library.

  • 1.2.3 Apr 12 2016 gem.coop system

simple_mock

A fast, tiny hybrid mocking library.

  • 0.0.2 Oct 25 2012 gem.coop system

surrogate

Framework to aid in handrolling mock/spy objects.

  • 0.8.1 Dec 15 2014 gem.coop system

verified_double

VerifiedDouble would record any mock made in the test suite. It would then verify if the mock is valid by checking if there is a test against it.

  • 0.8.1 Mar 04 2014 gem.coop system