Ecosyste.ms: OpenCollective

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

github.com/freerange/mocha.methods


https://github.com/freerange/mocha.methods

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. ...

c47f4d73f05c4af66809df9470f27a7fd80424f8 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...

1be0749af22f08ec4268013627663cdf392bbf38 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...

683d3b41ac0f9caf2c5d5589afa47e0a9c9b29bf authored about 12 years ago
Make whitespace consistent.

6e31521b0308dec4207654c34eb2530955327ccb 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...

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

fcf337b9235c9d5cc6211edf3660e7c325e81997 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...

b7b953564f25cd450866bc0497d6e77e6b840e1c 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...

a5d38d7d5d1ccc2b9f637b68a40f8ab0917e53ba 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...

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

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

252e37be2f4f1b58b116141f8fd30c4adc70dae2 authored about 12 years ago
Fix require statement for MiniTest::Adapter.

638d3820b22d00985ede36e0b23dcdfc9e80bcd0 authored about 12 years ago
Fix whitespace.

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

Fixes Travis link in readme

e33bcb581c0b0e2426622fbf28dc02b2a5312c79 authored over 12 years ago
Fixes Travis link in readme.

012f1dce8027ed51e86c8d0162dbe2cd6637ee4f authored over 12 years ago
Oops. Deprecation module is namespaced.

8eec2a654f11e74a1edec2395a05e10c6430ddc8 authored over 12 years ago
Avoid global variables and top-level methods.

9f2987ffc1de076532e802766ddbedf42f8d9823 authored over 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.

100bd9ee4d9490b70d883f171e6934bedaec8070 authored over 12 years ago
Remove unused files.

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

9b6b87a48716592144763229e382edc46ea88991 authored over 12 years ago
Change docs to `require "mocha/setup"` not `require "mocha"`.

The latter is now deprecated.

bd0a9bc165f58c736bdd0ef70edc43e7a7899cde authored over 12 years ago
Port release notes for 0.12.4-0.12.7.

59f70fb8db2ce2462f7247a8e89d639ba3f44139 authored over 12 years ago
Port fix for #103.

This was originally fixed in 7a84e44b99853c9753589d6a1c5164d3b57f16e3.

781d68e9335a29d31f4859b3f1fc95346d022b8a authored over 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...

07cf7307a7333c0cfcbe72cec4650fc6a9612e3c authored over 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 ...

c120a32698861ef62d13d2d9f1590cceb751cc68 authored over 12 years ago
Added link to Serbo-Croatian translation of README

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

This should speed up the build time.

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

To improve test coverage.

ee0474040906d8a0693b65daa1f14011e75fa3d3 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 ...

646d14a3c0c695feb1cda18a541702f82cfa22c3 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...

13327ea56a50f6cb67b4108fc48815a2a558110b 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...

2f8ae7278376915c5f5e74701f675a63e04d8169 authored over 12 years ago
Remove redundant require statement.

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

4a33e3d402b0be6de9835399b8682f2f45f85cd5 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

5b44f40e8c8bd47c939a876d980619ad841c5d0a 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...

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

a54ea3bedc4d4ad97f817da7cdd447818b320925 authored over 12 years ago
Remove redundant require statement.

a8460cb21b152f47e12f1d250ade207078ba9222 authored over 12 years ago
Tweaks to README description.

87a9c9c2440a60b92b3551b797c91e29ff4e4074 authored over 12 years ago
Tweaks & additions to README useful links.

286406b8942e0572ce95d932824116515b2a50dc 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...

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

eedefc05a1237ed5fc02cfbfcfc1a6784a51b1ed 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...

70d8934bdcb609d4518332f8ae3484586e7a34ff 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...

f21a965598497faad7080eae9451d6d676f27d31 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.

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

9db262c83125138beac6fb546bae1a857cd1949f 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.

0fcde6048af461f904e1ea0452b6ae2de449fcbe authored over 12 years ago
Convert rdoc syntax to markdown.

d1c8564209c3cd28acc6c858ac2159dd71ad6ec3 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.

f9b2583dd9411525ab3f3875181b9501c29f815b 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.

14e0b6d35d28be4dcc8bdfe6d70c9ed5f8ed7eb6 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...

2da0784d396b48ab31a9c7a3426386ec06b94b9c 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...

04ccc449fb395740f5bc803d03ebee7bedfa9449 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...

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

e31ed359c7d2f7b592bfb21db8847295eaa6cb88 authored over 12 years ago
More README tweaks.

19dbf24edfb01642ef98e8f54e9c6d72def558ff authored over 12 years ago
Tweaks to README.

9cb66504f4dca91bba0ddaa59729aadf4102d60e authored over 12 years ago
Convert README to markdown and revamp it.

6f735db48a5263af11eb0ef09022ccbeedca146e 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.

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

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

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

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

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

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

7ce998e8b42d86f6c9523113e8a03eeaeffc7bdc 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...

e1c2a7bc8dcc5aba8f2009c573f30e9d0bfeefb7 authored over 12 years ago
Simplified integration code.

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

9988e7748d5dc8cc2f2c9519f2c319109ba27367 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...

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

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

1b2c36dca338300cc9caa953dbc8e8d1cf560019 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 ...

1dc761009744abac0359dac900aa81cc20c9ce69 authored over 12 years ago
Improvements to whitespace in integration-related files.

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

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

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

6f509b164accb0b2ac1bf25949df8657a3bf9e95 authored over 12 years ago
Extract duplication in MiniTest patches into MonkeyPatcher module.

Also make each MiniTest patch responsible for describing itself.

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

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

a8d349a7146bef0c26f0e96ff70328a98bdb8bc8 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...

6b8459610adb6951ded2a90721a4ba62822f7266 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...

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

No more monkey-patching! Yay!

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

No more monkey-patching! Yay!

df0af0013b8f4cf0ab493ceeff87101dd2484b34 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...

819cb633075441de2ce65af364cf2edae9b6e8e8 authored over 12 years ago
Use new Test::Unit adapter for v2.3.0-2.5.1 instead of monkey patching.

c.f. f4ad99ca8ef44f8f911fc747ce8bb42b23f0746a for the MiniTest
equivalent.

I'm not sure whether...

ad4516c06ca63b136ffce4bab79ef31fb72bb6d9 authored over 12 years ago
Use a custom exception handler in the new Test::Unit adapter.

* It turns out that Test::Unit::AssertionFailedError is derived from
StandardError; whereas Mi...

225649d11780ec66675ce29af3ea19b03d1c9de9 authored over 12 years ago
Move Test::Unit monkey-patching code into the individual version modules.

By doing this I hope to make it easier to do something different for the
most recent versions wh...

72a5067915c5203ee5de7b820eb52ec0a420c63a authored over 12 years ago
Refactor Test::Unit monkey-patching integration.

Hopefully this makes it a bit easier to see what's going on and I
hope it will allow me to furth...

49026ab0db4eef17e493f9e4311e46f986c07ac4 authored over 12 years ago
Use the new MiniTest adapter for v3.3.0 instead of monkey patching.

The version checking probably does belong with the adapter itself, but
it was causing problems s...

905e5a898e2220946b213f84bad9ac7dc86f0003 authored over 12 years ago
Removed MiniTestTest now better coverage is provided by adapter tests.

913335d56ca9c92c3cc553a5457eb64c8a52ddf8 authored over 12 years ago
Removed APITest now better coverage is provided by adapter tests.

It might still be nice to have an example of how to write an adapter for
another test framework,...

976f3ad8358756f26984679234300d70500ce604 authored over 12 years ago
Move MiniTest monkey-patching code into the individual version modules.

By doing this I hope to make it easier to do something different for the
most recent versions wh...

8e6f4d886376cb876fe5f344cba2eb9aa0623fca authored over 12 years ago
Refactor MiniTest monkey-patching integration.

Hopefully this makes it a bit easier to see what's going on and I hope
it will allow me to furth...

ee412f907bf8bfdde8d75998d092b3e76035216c authored over 12 years ago
Move require statements outside conditional.

These require statements don't actually "do" anything and everything
they define is nicely names...

fad6126d3648f2f7a2244b106821a677eb026eda authored over 12 years ago
Move require statements closer to where they are needed.

Also remove redundant require statements.

ab67152217d6344bb803e71971fa33120bd06596 authored over 12 years ago
Extract activation of adapters into separate file.

This provides a simple way to use the new adapters when you want *all*
your test cases to have M...

87887f61ce1cda9674a7128593beb36aa6a2bb0a authored over 12 years ago
Run new MiniTest & Test::Unit adapter tests in build matrix.

Both in local build matrix script and (hopefully) in Travis CI.

1ebbbe4934bf012e003fe1e1ddc186d1e7d7fc71 authored over 12 years ago
Merge branch 'master' into minitest-and-testunit-integration-without-monkey-patching

It was easier to merge rather than re-base in this case, because of the
back and forward of the ...

adcd1c53b1faea4b50694a65edc5866235c558f7 authored over 12 years ago
Rename MonkeyPatching back to Integration.

This is to match up with the reverted commit [1] in master.

06295c96f07e53f6c7b35a57859db79f7ba2ea14 authored over 12 years ago
Rename Integration namespace to Adapters.

This is because I want to rename MonkeyPatching back to Integration as
in master [1], but I want...

8970a1fa568d47fa9aa718cc8d4bc2ecf1ba1728 authored over 12 years ago
Tweaks to development notes in README.

71dcb990da888df00032e14f6585184e7cc48675 authored over 12 years ago
Merge pull request #96 from freerange/add-development-section-to-readme

Add development instructions to README

33b1ef1516b0a22a9ba488767c47218aab30c130 authored over 12 years ago
Keep #95 fix for Ruby 1.9, but avoid regression in Ruby 1.8.

The clumsy code is needed to avoid a regression of #76 in Ruby 1.8.

09590b43effd45d1a06fe548c9398686d3e008ef authored over 12 years ago
Simplify restoration of original method. Fixes #95.

@tandem-softworks correctly pointed out that the code was overly
complicated and introduced an u...

c7db1ca0cdb602b9c1da8359d8ca2ad6278a4209 authored over 12 years ago
Bump version to 0.12.3 and prepare for release.

43c1c1640dfdd80ac00ac67607f8ba2fad0cb49a authored over 12 years ago