Mocking

rspec-mocks

RSpec's 'test double' framework, with support for stubbing and mocking

Rubygem rspec-mocks

Total Downloads
46333121
Releases
101
Current Version
3.5.0
Released
2016-07-01 00:00:00 UTC
First Release
2009-09-16 07:00:00 UTC

Github rspec/rspec-mocks

Watchers
661
Forks
234
Development activity
Active
Last commit
2016-04-30 06:49:06 UTC

Mocha

Mocking and stubbing library with JMock/SchMock syntax, which allows mocking and stubbing of methods on real (non-mock) classes.

Rubygem mocha

Total Downloads
12027880
Releases
61
Current Version
1.1.0
Released
2014-05-13 00:00:00 UTC
First Release
2006-07-15 23:00:00 UTC

Github freerange/mocha

Watchers
783
Forks
115
Development activity
Inactive
Last commit
2015-11-11 17:28:22 UTC

mock_redis

Instantiate one with `redis = MockRedis.new` and treat it like you would a normal Redis object. It supports all the usual Redis operations.

Rubygem mock_redis

Total Downloads
1255512
Releases
43
Current Version
0.16.1
Released
2016-03-18 00:00:00 UTC
First Release
2011-07-14 07:00:00 UTC

Github causes/mock_redis.git

Watchers
Forks
Development activity
Unknown
Last commit
First commit
Top contributors
Contributors

RR

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

Rubygem rr

Total Downloads
1331765
Releases
77
Current Version
1.2.0
Released
2016-05-29 00:00:00 UTC
First Release
2007-07-07 07:00:00 UTC
Depends on following gems
Depending Gems
577

Github rr/rr

Watchers
217
Forks
19
Development activity
Less active
Last commit
2016-02-11 07:52:32 UTC
Contributors
28
Issues

Flexmock

FlexMock is a extremely simple mock object class compatible with the Minitest framework. Although the FlexMock's interface is simple, it is very flexible.

Rubygem flexmock

Total Downloads
545138
Releases
66
Current Version
2.2.1
Released
2016-07-12 00:00:00 UTC
First Release
2005-10-25 04:00:00 UTC

Github jimweirich/flexmock

Watchers
85
Forks
20
Development activity
Inactive
Last commit
2015-12-08 01:33:06 UTC
Top contributors
Contributors
5
Issues

bogus

Decreases the need to write integration tests by ensuring that the things you stub or mock actually exist.

Rubygem bogus

Total Downloads
48598
Releases
13
Current Version
0.1.6
Released
2015-01-02 00:00:00 UTC
First Release
2012-07-30 00:00:00 UTC

Github psyho/bogus

Watchers
342
Forks
12
Development activity
Inactive
Last commit
2015-12-11 06:47:03 UTC
First commit

Stump

Stubbing and mocking that doesn't hurt or suck. WIN.

Github jm/stump

Watchers
46
Forks
17
Development activity
Inactive
Last commit
2016-03-08 03:54:25 UTC
Top contributors
Contributors
2
Issues

spy

Spy is a mocking library that was made for the modern age. It supports only 1.9.3+. 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.

Rubygem spy

Total Downloads
63721
Releases
13
Current Version
0.4.3
Released
2016-04-14 00:00:00 UTC
First Release
2013-02-05 00:00:00 UTC
Depending Gems
1

Github ryanong/spy

Watchers
44
Forks
8
Development activity
Inactive
Last commit
2016-04-14 15:28:59 UTC
First commit
Top contributors
Contributors
4
Issues

surrogate

Framework to aid in handrolling mock/spy objects.

Rubygem surrogate

Total Downloads
53048
Releases
22
Current Version
0.8.1
Released
2014-12-15 00:00:00 UTC
First Release
2012-04-20 00:00:00 UTC
Depends on following gems
Depending Gems
4

Github JoshCheek/surrogate

Watchers
32
Forks
8
Development activity
Inactive
Last commit
2014-12-15 01:52:06 UTC

Facon

A mocking library in the spirit of the Bacon spec library. Small, compact, and works with Bacon.

Rubygem facon

Total Downloads
17087
Releases
7
Current Version
0.5.0
Released
2011-10-05 16:00:00 UTC
First Release
2008-02-09 16:00:00 UTC
Depends on following gems
Depending Gems
8

Github chuyeow/facon

Watchers
37
Forks
10
Development activity
Inactive
Last commit
2014-01-03 12:36:54 UTC
Contributors
6
Issues

verified_double

Contract tests for rspec

Rubygem verified_double

Total Downloads
18077
Releases
19
Current Version
0.8.1
Released
2014-03-04 00:00:00 UTC
First Release
2013-06-02 00:00:00 UTC
Depending Gems
1

Github gsmendoza/verified_double

Watchers
18
Forks
3
Development activity
Inactive
Last commit
2014-03-04 02:54:06 UTC
First commit
Top contributors
Contributors
4
Issues

simple_mock

A fast, tiny (82 lines) hybrid mocking library that supports classical and partial mocking. Partial mocking mixes classical mocking with real objects. There's no monkey patching `Object` or copying. Mock objects are isolated leaving real objects completely untainted.

Rubygem simple_mock

Total Downloads
9481
Releases
2
Current Version
0.0.2
Released
2012-10-25 00:00:00 UTC
First Release
2012-02-19 00:00:00 UTC
Depends on following gems
Depending Gems
1

Github tatey/simple_mock

Watchers
39
Forks
0
Development activity
Inactive
Last commit
2015-12-20 07:41:22 UTC
Top contributors
Contributors
2
Issues

Cross-stub

Simple cross process stubbing

Rubygem cross-stub

Total Downloads
26667
Releases
11
Current Version
0.2.4
Released
2010-11-08 16:00:00 UTC
First Release
2009-12-04 16:00:00 UTC
Depends on following gems
Depending Gems
0

Github ngty/cross-stub

Watchers
19
Forks
0
Development activity
Inactive
Last commit
2016-02-27 13:06:58 UTC
Top contributors
Contributors
2

mocoso

A simple stub & mock library.

Rubygem mocoso

Total Downloads
12230
Releases
12
Current Version
1.2.3
Released
2016-04-12 00:00:00 UTC
First Release
2013-10-03 00:00:00 UTC
Depends on following gems
Depending Gems
2

Github frodsan/mocoso

Watchers
19
Forks
2
Development activity
Less active
Last commit
2016-04-12 23:58:37 UTC
First commit
Top contributors
Contributors
2
Issues
×

In order to continue, you must be signed in using your Github account.

If you're signing in using this account for the first time Github will ask for your permission to give access to your public user data to the Ruby Toolbox.

Although the Github Authorization page does not mention it, the request includes read-only access to your verified email address (user:email OAuth scope). This is neccessary so there's a way to notify you about comments, information about your accepted project edits and the like. You can review your notification settings on your account page once you're signed in.