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

Make the `Hooks` module easier to unit test.

Simplify the `Mockery` "API" that is used by the `Hooks` module i.e.
there is no real need for `...

72065842bf5cdf7b86629bea279b09598c44f265 authored almost 12 years ago
Safer restoration of stubbed method visibility. Fixes #141.

It is possible for `Module#public`, `#protected` and `#private` to be
redefined on descendant cl...

2b3148c02a9545b6e3c004142e901438a73e6129 authored almost 12 years ago
Adapt tests to changes in MiniTest output.

The Mocha integration tests are unfortunately dependent on the
exact format of the test results ...

3f56bd9b24b54832d139155cfbd16cc11cc4f2f7 authored almost 12 years ago
Make auto-activation of Test::Unit integration more resilient.

This change is specifically to cope with the nasty re-defining of
classes that is done by the `m...

c516606bb0df213eab35a330f40138f1cd4b2aa5 authored almost 12 years ago
Merge pull request #140 from tmiller/master

Use `require` instead of `load` with `test/unit/version`.

Other gems also require `test/unit/...

e623a264d99415520b40bff9cbb6a4065b741d2f authored almost 12 years ago
Attempt a Ruby 2.0 build on Travis CI.

c2de103f1176ff9f79619f919386a49bdddf121b authored almost 12 years ago
Use require instead of load with test/unit/version

Other gems also require test/unit/version. When this gem loads the
same file it over writes th...

2eec32a59907274412784b70e16b58b123902a3b authored almost 12 years ago
Avoid deprecation warning in Bundler v1.2.4.

I was seeing the following warning message:

The source :rubygems is deprecated because HTTP...

83e80c47e86f5ac6de09a51bc5f3872a0c528205 authored almost 12 years ago
Ensure all files have a newline at end-of-file.

This is to avoid spurious git diffs.

6cca59f71665fa95eceb387070c958480dacec5e authored almost 12 years ago
Updates to README based on latest Rails releases.

2f2e7f560adf38610aa6e9d4820211c388ce75da authored almost 12 years ago
Allow stubbing of private Kernel methods. Fixes #134.

We were only testing stubbing of the public and protected methods on
Object.

Note that `#method...

7a0760a8f2dfcf093d3eea68800b7c0b0c89f94e authored almost 12 years ago
Tweaks to unit test for ParameterMatchers::Includes.

f6060ee94af17a8e1e921d17e0d5fa20be772752 authored about 12 years ago
Fix documentation for ParameterMatchers::Includes.

aa8b742f5fdf8c92304ad5c09d577d8c4ad89475 authored about 12 years ago
Changed `includes` API to accept more than on item to match against the subject

0830b5b096d78ff09e5eb54e94a5fb897783360e authored about 12 years ago
Style tweak to ParameterMatchers::Includes#mocha_inspect implementation.

I prefer unabbreviated variable names.

8cdc99f1eb0fcee28256f507f1f178f8016dca05 authored about 12 years ago
Fix latest version of Mocha mentioned in README.

aa502fe7bc9bb5d82f53be1cf445f8063fcca9a4 authored about 12 years ago
Bump version to 0.13.2 and prepare for release.

d08e97f7ef31c12e64294e46df693f3bc9ced6a2 authored about 12 years ago
Attempt to head Rails-related issues off at the pass.

715e4677044180a35b4d254ec20db40f85cacf84 authored about 12 years ago
Add a Gem Badge to provide a link to Mocha on Rubygems.

See http://badge.fury.io/

d4a724d8183aaf821b8906b9a0342b26ff1603c2 authored about 12 years ago
Add Google Analytics javascript to Mocha docs.

Customising YARD templates is a bit obscure and this was the best I
could come up with. The java...

e683d2ad272e188100ccfdbe86801ba1a93a255a authored about 12 years ago
Make `Expectation#inspect` less verbose and more useful. Fixes #122.

b16ed30a9923ae52322d5bb44a010692d3e9ed62 authored about 12 years ago
Make unit tests more robust to changes in environment. Fixes #121.

@voxik wanted to run the tests by simply requiring the files rather than
running the rake task. ...

03a8c012f386c0e1f21d6fe0cd264162e34e966f authored about 12 years ago
Stubbing of methods re-declared with different visibilty. Fixes #109.

Given a method which is re-declared with a different visibility lower
down the ancestor chain, a...

cf91bded89fe2172f2f82146aaacaa520f564b0e authored about 12 years ago
Add `Mock#responds_like_instance_of`. Fixes #119.

This is useful if you have a class that is awkward to instantiate. The
implementation uses `Clas...

3f4beceba9b6ef030d04bc0a41685333983eed99 authored about 12 years ago
Make whitespace consistent.

011ae629839006a7dc47216a8b4eda7bfa3413ca authored about 12 years ago
Make documentation example consistent with other examples.

Elsewhere we are using `# =>` to display the expected output and not
using `Test::Unit::Assertio...

983e72b589c35d1be81eb323489291b3b532415a authored about 12 years ago
Bump version to 0.13.1 and prepare for release.

4107c1bbbf216dee1bd308101f2f69a0b818532d authored about 12 years ago
Tweaks to fix for #97.

- I don't abbreviated variable names or variable names with digits in
them, so I've got rid of...

da2e75a79be3952abc0cc99bde0d0233566433a6 authored about 12 years ago
Untested fix for #97: has_entry() does not work with an array as a hash value.

Explicitly populate the key and value in different cases, rather than using flatten.
Untested bec...

47bb37f76e90dd8e768f8355226df3bdb982bcc4 authored about 12 years ago
Allow deprecation debug to be switched on from MOCHA_OPTIONS env var.

I suspect there may be a lot of libraries out there that are requiring
"mocha" directly will now...

337a72ec916dcefb7a73de2acb6f39b29ae16e14 authored about 12 years ago
Added release note about deprecation of mocha standalone.

60e776e9c5fc535004ec3fb556068afb72e1421e authored about 12 years ago
Update release notes and bump version to 0.13.0.

0c662f7e5cd324505fcd9ddf2ca2db2445ce9b14 authored about 12 years ago
Fix require statement for MiniTest::Adapter.

a6deac17ee9e97002a8a5978a9c99638b8fa4639 authored about 12 years ago
Fix whitespace.

b8738e788cec8c8ab5f7db8fff47809cce9b806d authored about 12 years ago
Merge pull request #105 from cknadler/readme

Fixes Travis link in readme

721e65e0d7422a28a17fcbbb5bbd296ce3cf5f65 authored about 12 years ago
Fixes Travis link in readme.

16541382a4d4887b5ee9110831955667979f3275 authored about 12 years ago
Oops. Deprecation module is namespaced.

81963b7735b224c0cfda9dce2de8efb31fdcedd5 authored about 12 years ago
Avoid global variables and top-level methods.

c1eaec2df2249ccf09e03a9ec70858866d17c3b3 authored about 12 years ago
Add deprecation warnings for test library authors.

`require 'mocha/api'` is not the definitive way to integrate a test
library with Mocha.

77b711729dab7148f77837ef740db15a4d01001d authored about 12 years ago
Remove unused files.

The idea of these files was to provide a way to explicitly integrate
with either MiniTest or Tes...

d0e68b25f9db2c9415d25154631f3e1cba72e370 authored about 12 years ago
Change docs to `require "mocha/setup"` not `require "mocha"`.

The latter is now deprecated.

4c4ae254d4c9885f139f6f794ff14acf7b71e0f7 authored about 12 years ago
Port release notes for 0.12.4-0.12.7.

c3c1add2c206dbb161b739d6643bd5c2c45604e1 authored about 12 years ago
Port fix for #103.

This was originally fixed in 7a84e44b99853c9753589d6a1c5164d3b57f16e3.

70e21abcdccea9b2af2430ce919ac0e33d76277b authored about 12 years ago
Extract automatic mocha integration into 'mocha/setup'.

* For the moment, `require 'mocha'` will continue to work as before, but
will issue a deprecat...

6df882d33ba785e0b43b224b7d625841d8e203be authored about 12 years ago
Make deprecation warnings more prominent.

I'm about to issue some important deprecation warnings, so I want as
many people as possible to ...

c00752d62cd42ea4180e517809e85d38a81f288c authored about 12 years ago
Added link to Serbo-Croatian translation of README

177e9cc6a5fa4d16cd8a2dbddfc18cb4ba964542 authored over 12 years ago
No need to install doc-related gems when running tests.

This should speed up the build time.

7784760c314ce955c253cf277696368ef60d6805 authored over 12 years ago
Add builds for stdlib versions of Test::Unit & MiniTest.

To improve test coverage.

5b9c961d8ff91f129b80969017560c845f9283a9 authored over 12 years ago
Remove troublesome require statements.

These require statements meant that Test::Unit was always loaded when
Mocha was loaded. This is ...

ae086ebe615021bfbe27087c1d12d6e19362bde3 authored over 12 years ago
Move logic to more appropriate/specific modules.

These Integration modules ought to be able to decide whether or not they
are appropriate for the...

325508ef00f074bf4473733056b8a6e4c6e5e48e authored over 12 years ago
Make test library integration more explicit.

Based on a suggestion from @lazyatom. Thanks!

Now integration only happens when the newly intro...

3405bfd18cba6fcdb59d1827d20c447d5dcbefa8 authored over 12 years ago
Remove redundant require statement.

`mocha/configuration` is required via `mocha/api` and `mocha/mockery` so
this top-level require ...

906163caf38852830c0a1635f59b5f2075eeda3b authored over 12 years ago
Merge pull request #101 from urbanautomaton/respond-to-with-strings

Mock#respond_to? doesn't work with a string argument

edb01b94125ec88c83cf70cabed78b5cd55ff5be authored over 12 years ago
MethodMatcher#match? is string/symbol indifferent

To more closely mimic ruby's `#respond_to?` behaviour,
MethodMatcher#match? will now return true...

533a7325f85480814bac747c2a917daab57f5367 authored over 12 years ago
Make require statement more specific c.f. its mini_test counterpart.

457e753ec0c3ce975159c46b8cdf68010caed41f authored over 12 years ago
Remove redundant require statement.

02ead974cf7ed128e986683082044e6bf012e2b3 authored over 12 years ago
Tweaks to README description.

15874750a9e7d0823bce8397469734865cc67635 authored over 12 years ago
Tweaks & additions to README useful links.

e6cda82eeb25d4cc212edf67d7320019b2137697 authored over 12 years ago
Tweaks to contributing & contributors documentation.

Using a link to Github's contributors graph reduces the maintenance
overhead of keeping the list...

46f1ca0132486f803b2d59d1af5cd28f14e97971 authored over 12 years ago
This file & directory no longer exist and so don't need to be ignored.

52d4552fd14d55bf23180f0b6a108261a6b136e9 authored over 12 years ago
Revert "These tests have been superseded by the integration tests."

This reverts commit 0d835123d7f4d641461c0e6b0b9d023150dd8f9e.

These tests are used by the perfo...

40679d6dc86b1c62290f66ad92733c5495a63f1c authored over 12 years ago
Make rubygems build documentation using yard.

* This was achieved by setting `Gem::Specification#has_rdoc` to
`"yard"`.
* I also found it wa...

3eb33f06388b11d31de9ebc0fa80de96de018aa6 authored over 12 years ago
Inline example code into README.

This is part of an effort to make the documentation render correctly
on both Github and elsewhere.

6e1419572672582712ecbc9cdf94bd9f08f99ed0 authored over 12 years ago
Use HTML entity for copyright symbol which is allowed in markdown.

d7e0d5cd7d66575db117d11b3ae72cb3c47b438c authored over 12 years ago
Correct an entry in the release notes.

Although v0.11.0 was yanked at one point, it was re-instated fairly soon
afterwards.

437b49d3336d74efbda083f66d9301b581baab82 authored over 12 years ago
Convert rdoc syntax to markdown.

e52b5297a90eb01c04ad3ba4be436c2ca8f59634 authored over 12 years ago
Convert RELEASE from rdoc to markdown.

This is part of an effort to make the documentation render correctly
on both Github and elsewhere.

05fd1d448c5e94aeac7b811b8a31a3e6c8335803 authored over 12 years ago
Convert MIT-LICENSE from rdoc to markdown.

This is part of an effort to make the documentation render correctly
on both Github and elsewhere.

7cceceb138f350b9e3d4c7dee0068ecee6d6b94a authored over 12 years ago
Convert COPYING from rdoc to markdown.

This is part of an effort to make the documentation render correctly on
both Github and elsewher...

5fb65600158e63c804bc9d723340d439abe1b91e authored over 12 years ago
Fix yardoc rake task by adding dependency on redcarpet.

I was seeing the following error :-

[error]: Missing 'redcarpet' gem for Markdown formattin...

4dae54c39001c0ed4d8fd9dd504f7f0204da51cd authored over 12 years ago
Revert "YARD file links don't work in Github markdown."

This reverts commit 22c4422e3511d461193b96df194925261bcb00c8.

This commit didn't solve the prob...

a65a48fca10277b5a36b757565804d952128352d authored over 12 years ago
YARD file links don't work in Github markdown.

22c4422e3511d461193b96df194925261bcb00c8 authored over 12 years ago
More README tweaks.

a100d4ded5918fba0e1154d6ae4c8dfc8d306703 authored over 12 years ago
Tweaks to README.

22816486fe36c55877e7d72bf1c42143285b35fe authored over 12 years ago
Convert README to markdown and revamp it.

5db66214bb3b717b96c50aa405511fd0419a001c authored over 12 years ago
Extract Hooks module from API. Add docs for test library authors.

Still need to add some more documentation to the README, but this is a
good start.

f1697fe92af69c76b7ebad5646ec83af28de530b authored over 12 years ago
These tests have been superseded by the integration tests.

0d835123d7f4d641461c0e6b0b9d023150dd8f9e authored over 12 years ago
Simplify integration logic using null object pattern.

a61a1311b5589bea41cf6bbb342793617c5350d1 authored over 12 years ago
Extract duplication into a new method.

29911d37b6af908ece45727468ae7dcb89fa134f authored over 12 years ago
Move "adapter" tests into more appropriate "integration" directory.

c24d424ed736816f804bd814ed3e8da3ccf807e4 authored over 12 years ago
Reduce duplication in direct/explicit adapter requiring files.

a132f80a62885de8b48be26eea88ff9c6f9480cc authored over 12 years ago
Remove redundant line left in by accident.

a44682d4f08ec90ce438f9d5dec21c04e311a715 authored over 12 years ago
Move new adapters into Integration namespace.

I think it's now more confusing for them to be somewhere different.
After all the only differenc...

0b1d47ca5cda2d20da38c1838182425368341bfa authored over 12 years ago
Simplified integration code.

9ef5615f790552d2e079a0cea061754120358445 authored over 12 years ago
Use Module#< for terser checking of ancestor chain.

951ce72138e786e709b0b55059426c806a3a295d authored over 12 years ago
Split Object/Module/Class-Methods unit tests into separate files.

Also improved the level of isolation between these tests and other
tests by only including the m...

d25e29923839689d362f4a3c0a79dc1a14c5080c authored over 12 years ago
Split ObjectMethods, ClassMethods & Module Methods into separate files.

34cd93688ab10bfa5a58b9c0ad3d6769803a67ef authored over 12 years ago
Only actually add methods to Object, Module & Class when including API.

8b054252c061c0c8972ce8e302aef1fffd6a6ba4 authored over 12 years ago
Use a single AssertionCounter for everything.

While using Test::Unit's #add_assertion method might somehow be more
*correct*, I can't see how ...

59c3f08456fbe71b3d35a0fc5e961c33985e9729 authored over 12 years ago
Improvements to whitespace in integration-related files.

50018b1db9ce00e4d2dcc48936601e88c71ea9f9 authored over 12 years ago
Moved requires closer to where they are needed.

21aae4582b73703c4b3bcd949246f8d3172cdc7e authored over 12 years ago
Each integration module can know what Test::Unit version it supports.

4a8923c4248e7516d49ab9818076771b1de3dd4a authored over 12 years ago
Each integration module can know what MiniTest version it supports.

024fdb8897a3832af00f7dfc6d11825d5c083cab authored over 12 years ago
Extract duplication in MiniTest patches into MonkeyPatcher module.

Also make each MiniTest patch responsible for describing itself.

3e189b7ec50698deb9f82c462faf9f668cda6f8e authored over 12 years ago
Extract duplication in Test::Unit patches into MonkeyPatcher module.

Also make each Test::Unit patch responsible for describing itself.

1758f8e9a59fe0b3e70778eb83744ad1439a77d3 authored over 12 years ago
Run `Mocha::API#mocha_setup` before any other setup code.

Although currently no code is run within `#mocha_setup`, it makes more
sense to run it before an...

bb063e7a48b4dbe7cfbc32b3b01315256102f4d4 authored over 12 years ago
Only run "adapter" tests for different versions of MiniTest & Test::Unit

* The so-called "adapter" tests are really integration tests in the
sense that they check that M...

f1ff6475ca2871f2977ab84cabbbfe2adadbbee6 authored over 12 years ago
New Test::Unit adapter should support any new version of Test::Unit.

No more monkey-patching! Yay!

953650d7994b549ac73999ab016b3d03a594e1bc authored over 12 years ago
New MiniTest adapter should support any new version of MiniTest.

No more monkey-patching! Yay!

b37388693be15f327b757b916dc97bb8f12775d5 authored over 12 years ago
Tweaks to new Test::Unit adapter.

* It's reassuring to see that the changes I independently arrived at
in e9d05cc2acf3a0bf5fbc78...

7869f3897c08d824df670225e170439a3ae484d8 authored over 12 years ago