Mocking

rspec-mocks

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

Rubygem rspec-mocks

Total Downloads
26502974
Releases
90
Current Version
3.2.1
Released
2015-02-24 00:00:00 UTC
First Release
2009-09-16 07:00:00 UTC

Github rspec/rspec-mocks

Watchers
537
Forks
195
Development activity
Active
Last commit
2015-05-03 22:14:54 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
7927531
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
677
Forks
106
Development activity
Less active
Last commit
2015-04-30 00:01:46 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
663163
Releases
36
Current Version
0.14.1
Released
2015-05-04 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
1044755
Releases
76
Current Version
1.1.2
Released
2013-08-18 00:00:00 UTC
First Release
2007-07-07 07:00:00 UTC
Depends on following gems
Depending Gems
581

Github rr/rr

Watchers
184
Forks
15
Development activity
Inactive
Last commit
2015-03-31 15:30:48 UTC
Contributors
28
Issues

Flexmock

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

Rubygem flexmock

Total Downloads
450771
Releases
55
Current Version
1.3.3
Released
2014-01-20 00:00:00 UTC
First Release
2005-10-25 04:00:00 UTC
Depends on following gems
Depending Gems
149

Github jimweirich/flexmock

Watchers
77
Forks
14
Development activity
Inactive
Last commit
2014-01-20 22:52:16 UTC
Contributors
6
Issues

bogus

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

Rubygem bogus

Total Downloads
30450
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
308
Forks
10
Development activity
Less active
Last commit
2014-11-28 16:16:13 UTC
First commit

Stump

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

Github jm/stump

Watchers
48
Forks
14
Development activity
Inactive
Last commit
2008-10-30 19:17:30 UTC
Top contributors
Contributors
2
Issues

surrogate

Framework to aid in handrolling mock/spy objects.

Rubygem surrogate

Total Downloads
41936
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
34
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
13665
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
9
Development activity
Inactive
Last commit
2014-01-03 12:36:54 UTC
Contributors
6
Issues

spy

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

Rubygem spy

Total Downloads
23311
Releases
11
Current Version
0.4.1
Released
2013-05-28 00:00:00 UTC
First Release
2013-02-05 00:00:00 UTC
Depending Gems
1

Github ryanong/spy

Watchers
39
Forks
6
Development activity
Inactive
Last commit
2014-09-04 21:15:04 UTC
First commit
Top contributors
Contributors
2
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
7352
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
1
Development activity
Inactive
Last commit
2013-06-08 06:17:15 UTC
Top contributors
Contributors
2
Issues

verified_double

Contract tests for rspec

Rubygem verified_double

Total Downloads
11572
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

Cross-stub

Simple cross process stubbing

Rubygem cross-stub

Total Downloads
21853
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
18
Forks
0
Development activity
Inactive
Last commit
2010-11-09 04:32:33 UTC
Top contributors
Contributors
2
Issues

mocoso

A simple stub & mock library.

Rubygem mocoso

Total Downloads
7200
Releases
10
Current Version
1.2.1
Released
2014-01-18 00:00:00 UTC
First Release
2013-10-03 00:00:00 UTC
Depends on following gems
Depending Gems
2

Github frodsan/mocoso

Watchers
15
Forks
1
Development activity
Less active
Last commit
2014-04-09 03:19:49 UTC
First commit
Top contributors
Contributors
1
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.