Mocking

rspec-mocks

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

Rubygem rspec-mocks

Total Downloads
15250835
Releases
73
Current Version
2.14.6
Released
2014-02-20 00:00:00 UTC
First Release
2009-09-16 07:00:00 UTC
Depends on following gems
Depending Gems
190

Github rspec/rspec-mocks

Watchers
346
Forks
138
Development activity
Active
Last commit
2014-02-12 15:39:28 UTC
Contributors
75
Issues
Wiki pages

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
5093888
Releases
60
Current Version
1.0.0
Released
2014-01-11 00:00:00 UTC
First Release
2006-07-15 23:00:00 UTC

Github freerange/mocha

Watchers
541
Forks
86
Development activity
Less active
Last commit
2014-02-13 12:02:34 UTC
Contributors
33
Issues
Wiki pages

RR

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

Rubygem rr

Total Downloads
763551
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
502

Github rr/rr

Watchers
127
Forks
12
Development activity
Less active
Last commit
2013-09-12 06:37:33 UTC
Contributors
25
Issues
Wiki pages

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
309296
Releases
31
Current Version
0.12.1
Released
2014-04-14 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

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
342217
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
127

Github jimweirich/flexmock

Watchers
73
Forks
10
Development activity
Less active
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
12921
Releases
11
Current Version
0.1.4
Released
2013-07-25 00:00:00 UTC
First Release
2012-07-30 00:00:00 UTC

Github psyho/bogus

Watchers
263
Forks
12
Development activity
Less active
Last commit
2014-04-08 09:17:42 UTC
First commit
Contributors
8
Issues

Stump

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

Github jm/stump

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

Facon

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

Rubygem facon

Total Downloads
10763
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
6

Github chuyeow/facon

Watchers
32
Forks
9
Development activity
Less active
Last commit
2014-01-03 12:36:54 UTC
Contributors
6
Issues

surrogate

Framework to aid in handrolling mock/spy objects.

Rubygem surrogate

Total Downloads
26583
Releases
20
Current Version
0.7.0
Released
2013-01-11 00:00:00 UTC
First Release
2012-04-20 00:00:00 UTC

Github JoshCheek/surrogate

Watchers
34
Forks
4
Development activity
Inactive
Last commit
2013-06-14 07:31:10 UTC
Contributors
5
Issues

spy

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

Rubygem spy

Total Downloads
13416
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
0

Github ryanong/spy

Watchers
34
Forks
2
Development activity
Inactive
Last commit
2014-01-19 16:14:31 UTC
First commit
Top contributors
Contributors
1
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
3952
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
37
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
5857
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
0

Github gsmendoza/verified_double

Watchers
18
Forks
3
Development activity
Less active
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
17507
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
16
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
2854
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
1

Github frodsan/mocoso

Watchers
9
Forks
2
Development activity
Less active
Last commit
2014-01-20 00:18:11 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.