Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/freerange/mocha

A mocking and stubbing library for Ruby
https://github.com/freerange/mocha

Invert sense of environment variable for generating docs.

I was seeing an error in Travis CI builds for Ruby versions earlier than 1.9.2:

An error oc...

6a928ac91f23f888cef2529506884f1b9d967aa0 authored almost 10 years ago
Deps on test libs should not depend on doc generation option.

2928a006c8e45b61ff7d386ae0d0c931981f263d authored almost 10 years ago
Add Test::Unit as a development dependency.

I was seeing the following exception on Travis CI builds with Ruby 2.2:

test/test_helper.rb...

ce3a242216fcaa434380bb62603c7de96ccdee08 authored almost 10 years ago
Apply all env vars to all Travis CI builds.

Previously these env vars contributed to the matrix of builds which is not
what I had intended.

7c845abb7fbc9de5771a9055c812774be4724509 authored almost 10 years ago
Do not generate docs in Travis CI builds.

* Prevents error installing Redcarpet on Ruby 1.8.7
* Same as the build matrix script
* Not nece...

30c34847a5de1bf45013b1f7cc421c4d3cfbf036 authored almost 10 years ago
Remove version restriction on Redcarpet.

I was seeing the following exception when trying to generate the docs:

NoMethodError: undef...

6691669045fd17e503ef37db3ec895bdbb357da4 authored almost 10 years ago
Run latest versions of Ruby v2.1 and v2.2 in Travis CI.

Ruby has supported semantic versioning since v2.1 and this should mean it's
safe to run the late...

baad405fc46a198c550a810ca88975c31f62f0af authored almost 10 years ago
Remove MiniTest version constraint from gem spec.

This is a bodgy way to make the performance tests work a bit (after a fashion)
with MiniTest v5....

a468c53adef477c13bed29bd3ef07737f7bf773b authored almost 10 years ago
Add Ruby 2.2.0 to the Travis CI build matrix.

82a1a53a9a989985a70349b249da6fd82fba708f authored almost 10 years ago
Constrain version of MiniTest in gem spec to v4.x.

Some major changes happened between MiniTest v4 and v5 and I was seeing
exceptions like this one...

788055cf2e0a9266f29719060e9d2d1857d66c07 authored almost 10 years ago
As of Ruby v2.2, nil is frozen so these tests are irrelevant.

In all these scenarios in the latest versions of Ruby, a `Mocha::StubbingError`
will be raised w...

a65ea1ed3dce43cbc2cc16b3660afd2cce3db33e authored almost 10 years ago
As of Ruby v2.2, there are no test libs in the standard library.

Both Test::Unit and MiniTest were removed [1] from the standard library in
Ruby v2.2.

Since Moc...

516f17c6f570f1c1835ab411726b5c06354fb192 authored almost 10 years ago
Fix typo in readme

6119460d9ad80a8b1996a7cb2067122db866de07 authored about 10 years ago
Allow gofreerange.com host to be changed in Rakefile

This makes it possible to publish the docs to another host, which is
useful while I'm trying to ...

f158adc4df9390cc47e8575bca8fb503a3aa37ec authored over 10 years ago
No need to update rubygems on Travis CI any more.

This `before_install` block was added in [1], because of a bug in the version
of Rubygems provid...

d02d2cc65c4429ba7c5c98d208e25b27d843380a authored over 10 years ago
Allow stubbing method to which any instance responds.

Fixes #200.

Previously we were not calling `Object#respond_to?` on an instance of the
class. By...

9edba0fee881c0d70f484e99a58d8b9d20743789 authored over 10 years ago
Add licenses to gemspec as requested by @coreyhaines.

Fixes #201.

94d4ea13b1578a0e7d8e44a0d400be404727e7b7 authored over 10 years ago
Update README and prepare for release.

88b276de4d9434bb5c83cad69a680a8e4762de07 authored over 10 years ago
Set visibility of any instance stub method.

This omission was drawn to my attention by @mrsimo in [1].

[1] https://github.com/mrsimo/mocha/...

8523bb26cbdb95061b0c461d93fc91dec71ca6aa authored over 10 years ago
Add message to method visibility assertion.

d9832811fd457754ade6683c9864a3a9048e4618 authored over 10 years ago
Stub methods with a prepended method if there are other prepended methods

d20094777a55569acb496e1163b2da503dac27f6 authored over 10 years ago
Improve docs for Mock#responds_like & #responds_like_instance_of.

Fixes #189.

[ci skip]

b0becfddb11a8312ede9f4060a16f6133603304a authored almost 11 years ago
Use GitHub convention for instructions on contributing to Mocha.

7095aaad20d283ca4b710aa534a397c2136dfe12 authored almost 11 years ago
Fix typos [ci skip]

3a84e5b093280260809f1ab0b434fb7c47347bd3 authored about 11 years ago
Update version to v1.0.0.

[ci skip]

7c27e4f1a70c5ddea30a30e35c8595be2f2d0753 authored about 11 years ago
Updates to README.md for v1.0.0.

[ci skip]

1d6b08f0c802a64f20464a4f2fa2ef6861deb9c8 authored about 11 years ago
Another tweak to RELEASE.md.

[ci skip]

a3b725a1a154b356e90ca35cba38b077fe73d85d authored about 11 years ago
Tweaks to RELEASE.md.

Group internal & external changes.

[ci skip]

d68bfded1cb4c8d5d4795b027905030837c91997 authored about 11 years ago
Merge branch '1-0-stable'

d16b088311f2e4a35888a2f9211a9b345f82f1b3 authored about 11 years ago
A little love made to README.md.

Closes #180.

[ci skip]

78b6170c61dcca17ad3cb05383aaf3c4dd60f748 authored about 11 years ago
A little love made to README.md.

[ci skip]

d155c5719946aa75f3816f294aaf4f5d89b95df5 authored about 11 years ago
Update to the latest RubyGems for Travis builds

In order to obtain the fix to rubygems/rubygems#763, we need at least RubyGems v2.2.1. However t...

3128fb8475bf9af81532f7a71b0fe6ca376f8c6e authored about 11 years ago
Use standard version of RubyGems in Travis build

Now that rubygems/rubygems#763 has been fixed, we should be able to do without the `before_insta...

66f76d3a37b1930c41b5586f67ac5fcfe4b35ca1 authored about 11 years ago
Update release notes and bump version to 1.0.0.alpha.

4f2fb511ee07bdc1464acecd5e5a616765db800e authored about 11 years ago
Assume 'mocha' has been required when requiring 'mocha/setup'

So no need to require 'mocha/version' in both files.

Note that 'mocha' is likely to have been a...

ae6f4939a7552ea358315f85c9f76ca176fd5af7 authored about 11 years ago
Provide shortcuts for integrating with specific test library.

Now you can use:

require 'mocha/test_unit'

OR

require 'mocha/mini_test'

Instead of:
...

6a6c8ddc2336dad3df8e839c0cfc71c0208a6224 authored about 11 years ago
Do not automatically try to integrate with test libraries.

Since the automatic test library integration functionality requires the test
library to be loade...

049080c673ee3f76e76adc1e1a6122c7869f1648 authored about 11 years ago
Consider stubs on superclasses if none exist on primary receiver.

Note: This may break existing tests which rely on the old behaviour!

Stubbing a superclass meth...

f33f506492f0536b232148fa059a41c95349d96a authored about 11 years ago
Add Ruby 2.1.0 to the build matrix.

208ba829462d9fe09c5a8a77c0b447ed80ae046a authored about 11 years ago
Avoid recursion when constructing unexpected invocation message.

When an unexpected invocation occurs, we try to construct a detailed message
for the exception. ...

716fed51a241778f6999ce72ea9315de15064ef9 authored about 11 years ago
Remove unnecessary code in integration tests.

`test/test_helper.rb` already loads MiniTest or Test::Unit, so no need to do
it again here.

Als...

1aae332d296fabbefc2c2471ec072d85193221cf authored about 11 years ago
Revert "Another attempt at making bundler output verbose."

This reverts commit 1346c5b9f711db7e21dbe37a854d6d5c0067f3d0.

I came up with a workaround for t...

7e93e92c8693081ace66dc2857186ffb874a71c7 authored about 11 years ago
Revert "Yet another attempt at making bundler output verbose."

This reverts commit 53c7cf91e0d6339fd8ed6a63412c0a9b7641aac8.

I came up with a workaround for t...

fca85d1924d065325bfd663c168e3876974646b7 authored about 11 years ago
Revert "Make bundler output verbose to debug issue on Travis CI."

This reverts commit c8bc6d20ddc0e894175632615a131b9d5077ec50.

I came up with a workaround for t...

56efad387c6196017749f468140fdf50f97fa0cd authored about 11 years ago
Use earlier version of Rubygems to avoid Bundler fatal error.

66bab2a8f4e7cd8734bf88e6f32157c0d5153125 authored about 11 years ago
I meant to use earlier version of Rubygems in previous commit.

079c4f6fa2255f85cf9f1bdd69f7f34e485518a4 authored about 11 years ago
Use earlier version of Bundler to avoid bug causing build to fail

See the following for details:

- https://github.com/travis-ci/travis-ci/issues/1793
- https://g...

d5833a13de2f22f8a591b62ea12d7b4551492b81 authored about 11 years ago
Install latest bundler on Travis CI.

As suggested by @roidrage in [1].

[1] https://github.com/travis-ci/travis-ci/issues/1793#issuec...

a6ca0930876e5999d8cd1dc31876f08284aa430c authored about 11 years ago
Revert "Revert "Move Test::Unit detection methods into their own module.""

This reverts commit 9fd4100d491af6188bd9852cb6d653450a60f0ea.

Reverting ac6a8422b021810e7899abf...

7dfba664190ee92639eea05dc2c1bde273e74709 authored about 11 years ago
Revert "Move Test::Unit detection methods into their own module."

This reverts commit ac6a8422b021810e7899abf9910fa1a51f13a420.

All Travis CI builds after this c...

9fd4100d491af6188bd9852cb6d653450a60f0ea authored about 11 years ago
Yet another attempt at making bundler output verbose.

53c7cf91e0d6339fd8ed6a63412c0a9b7641aac8 authored about 11 years ago
Another attempt at making bundler output verbose.

1346c5b9f711db7e21dbe37a854d6d5c0067f3d0 authored about 11 years ago
Make bundler output verbose to debug issue on Travis CI.

c8bc6d20ddc0e894175632615a131b9d5077ec50 authored about 11 years ago
Move Test::Unit detection methods into their own module.

To make it consistent with the MiniTest detection code.

ac6a8422b021810e7899abf9910fa1a51f13a420 authored about 11 years ago
Include Ruby 2.0.0 & latest Test::Unit in build matrix.

7647ac86aa4be7899e76b09d277929235445aed4 authored about 11 years ago
Test::Unit is not available in Ruby v1.9.3 standard library.

This only came to light after the fix in [1].

[1] 7fc0145bcdc6e96d261abd787968940cf7f8d068

169b5a0ec5fc1290a20fa6c1e21cba0c7b935c74 authored about 11 years ago
Fix indentation in `test/test_runner.rb`.

cfd0262c21b29bbdc8fb240cfee2ab80dbc8fdf2 authored about 11 years ago
Force use of Test::Unit runner, etc in relevant integration tests

Prior to this, I don't think we were really testing the Mocha integration with
Test::Unit much, ...

7fc0145bcdc6e96d261abd787968940cf7f8d068 authored about 11 years ago
Reset environment variables between builds.

I was seeing a problem where `MOCHA_RUN_INTEGRATION_TESTS` was being set in one
build but not se...

14a84f0e651d9f24cc7fa59282c58ba0129ac2b8 authored about 11 years ago
Only activate integration with relevant test library.

In integration tests.

d01ed4e20c1de751e756abedba857098ba3c2a21 authored about 11 years ago
Re-use shared MiniTest detection logic.

8cb17e153410dce6b52698339d1e25c311883b33 authored about 11 years ago
Add missing require statement.

b20022b0d873a43516c33e748322fbebb8f40ad5 authored about 11 years ago
Re-use shared MiniTest detection logic.

d65acde8a00815b343e748bb3ec1e6bb5512090d authored about 11 years ago
Re-use shared MiniTest detection logic.

e8d036d7a9440e3d78b9b9d60124812113dff8bb authored about 11 years ago
Reduce duplication in MiniTest version detection.

646b0ef3cfb9e1cfc27e80461f4767fe8464540e authored about 11 years ago
Move MiniTest detection methods into their own module.

I want to use this logic elsewhere.

5cc4f7b4cef51f23c54ac5d19d178be587e3d007 authored about 11 years ago
Include standard build combinations from Travis CI config.

I broke the build, because these were missing.

662cb86ee4b80e6c1bd89ab1a1ca725c525fdb45 authored about 11 years ago
Fix broken build.

6a3550a9f1bb3337e1ba6b99730727e2cba4871d authored about 11 years ago
Extract MiniTest detection logic into a couple of methods.

Also make them a bit more rigorous.

Similar logic is used elsewhere and I plan to move these me...

d8b6d23022528365b4d28f0629b6d9f71e6907c2 authored about 11 years ago
Fix Mocha::Integration::MiniTest.activate return value.

It looks like I got in a muddle with the levels of indentation.

With this change `.activate` wi...

32cd483d095b460f725faab149cc98e9934d5ea2 authored about 11 years ago
Remove unnecessary rescue block.

A `LoadError` is unlikely/impossible, because there is no `require` statement
within the block. ...

bfac1e5db3a49d2d7781a44ef2003541ffa3ab48 authored about 11 years ago
Remove unnecessary require statement.

37b92be0bbd334fa2f1a38a108b9499e138d014d authored about 11 years ago
Add explanation of method dispatch.

Heavily based on the relevant jMock v1 documentation [1].

Fixes #172.

[1] http://jmock.org/jmo...

09b69fa59dede154bc725e60d3d798e62023787f authored about 11 years ago
Make class_eval line number more accurate.

This sets the line number as the line number of the `def` statement.

8aebf3c618aad886921d9acfb9cfa546e7c7eff5 authored about 11 years ago
Update Google Analytics JS.

3c3ce76219379a71afa9481afdedaa038b6376f6 authored over 11 years ago
Merge pull request #166 from freerange/nested-responds-with-matcher

Allows nesting of `responds_with` parameter matcher.

0f6b65fc172874f1a199777d67f6597a437f023f authored over 11 years ago
Allows nesting of `responds_with` parameter matcher.

4e0f5c7e0224d62b8198a029af74d993fb37066e authored over 11 years ago
Define Mocha module before it's referenced.

The test helper defines a class `TestCase` within the `Mocha` module. When
running the tests ins...

d228ebfed74f8f094ccd0b264d212f6e46033d40 authored over 11 years ago
Document lack of thread-safety. Fixes #154.

084e5015116d24ba3e1d7f185ea91a70879aaf17 authored over 11 years ago
Document how to use the build-matrix script. Fixes #160.

8ad13a0bc325df5416887c31db121773cd06d17a authored over 11 years ago
Stubbing non-public method should use same visibility. Fixes #150.

This will probably break some existing tests that were somehow relying
on the stubbed method bei...

919def64edbd611a41c057081fa1b0474960620a authored over 11 years ago
Remove ruby version map from build matrix script.

I'm using the rbenv-aliases plugin to alias minor versions to the
relevant patch version.

5c0c5c635063461b8d27b7ba0cde650b5ff84a68 authored over 11 years ago
Fix `build-matrix.rb` script. Fixes #157.

Also use `.travis.yml` to decide what combinations to run. This means we
can now simulate the Tr...

7a6987b0743ab1351bd441cdb8dd7c4e49ef389b authored over 11 years ago
Update release notes and bump version to 0.14.0.

7e91df956675103203d4192b3c291bb2f5bf2c7d authored over 11 years ago
Yay! Tests all passing with MiniTest v5.

These changes leave the code in a bit of a mess, but since it's only
*test* code, I'm happy to c...

908c28f1090a575f7a913b25c8aafc03b887067b authored over 11 years ago
Introduce common TestCase class for Mocha tests.

It is no longer possible to use `Test::Unit::TestCase` in the presence
of MiniTest v5. By introd...

91288948057473d58377a9ab642031fd6eddc9c7 authored over 11 years ago
Ruby style changes.

I prefer to use a ternary operator and parentheses in this case.

2b1b09d4bdaa305ea34f7eb1ebfe55d895e65593 authored over 11 years ago
Update release notes and bump version to 0.14.0.alpha.

ea2ec82a66e8da8deaf9bda918f8558a6e22be69 authored over 11 years ago
Revert "Attempt to test against edge Minitest."

This reverts commit fdd64db1ae49a8d295ed837c961502983f49aae4.

1bcf2978d9de9eb95578c594333fd39064958070 authored over 11 years ago
Attempt to test against edge Minitest.

fdd64db1ae49a8d295ed837c961502983f49aae4 authored over 11 years ago
Merge pull request #156 from zenspider/minitest5

Added Minitest v5 support.

6a21548c21cf42801a00c405484ffc4e222e5259 authored over 11 years ago
Added minitest5 support.

e4994cc81f25a1feb0a88d1228e6ada326d1d28e authored over 11 years ago
Note another Rails compatibility problem in the README.

6cf1fe02768d437988c99d5e73adb9103fb76a1a authored almost 12 years ago
Update README to reflect fixes released in Rails.

This documentation caused some confusion in e.g. #147.

50b7af130c6d5f3848078fd3037eeca02204b778 authored almost 12 years ago
Update README to match latest version of Mocha.

22830c07aa3f3e88c9198b348ded2dbe3705cf4a authored almost 12 years ago
Revert "Consider stubs on superclasses if none exist on receiver. Fixes #145."

This reverts commit b41254ac391ce2274b89297b6bbb89b179a7df45.

As pointed out by @ccutrer this s...

9bed441912750d50fbff2a2883d24861ffee1f43 authored almost 12 years ago
Update README to reflect recent release of Rails 3.2.13.

This latest release of Rails incorporates the pull request which avoids
a Mocha deprecation warn...

611f5d293f307f7ea355c526ef9e4d01462d75f2 authored almost 12 years ago
Consider stubs on superclasses if none exist on receiver. Fixes #145.

Note: This may break existing tests which rely on the old behaviour!

Stubbing a superclass meth...

b41254ac391ce2274b89297b6bbb89b179a7df45 authored almost 12 years ago
Update release notes and bump version to 0.13.3.

b500ce8043c4ae7817aab7c833fda233285ac59b authored almost 12 years ago
Ensure `Mockery` instance gets reset even if exception raised.

It's unlikely but possible that an exception may be raised in
`Mockery#teardown`. We should ensu...

6da5eb25a5b4771b8612c0a415f46cf91da2e8bb authored almost 12 years ago