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

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

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

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

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

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

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

0835a3343c668f1de7f29aff09de01fa8da3e780 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,...

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

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

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

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

Also remove redundant require statements.

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

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

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

0fdfd905b4d777dc67f2505c74cb9ebc8feb1aeb authored over 12 years ago
Rename MonkeyPatching back to Integration.

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

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

89552cf2229b45c9480b5f88512d421fd6bbba9a authored over 12 years ago
Tweaks to development notes in README.

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

Add development instructions to README

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

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

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

e5b83692cc13a94a87a852bea317bea7bbe91610 authored over 12 years ago
Revert "Rename Integration module to MonkeyPatching". Fixes #94.

It turns out that all but the HEAD version of `ActiveSupport` are using
`Mocha::Integration::Tes...

1017ea89df6b4b8abe068154be71551a1caf053d authored over 12 years ago
Add development instructions to README

aeff20317bdf859ce27ebb141f3970c6c9ae94ab authored over 12 years ago
Bump version to 0.12.2 and prepare for release.

b5745a16acc4b244ce1a3bba2a481426a4eeb5c5 authored over 12 years ago
Fix typo in 9485443a559be9f6f05a9654c693fee820fba9d2.

039a275d6b3d25c0f12438b732f19ab87e63c406 authored over 12 years ago
Fix integration for MiniTest v3.3.0. Fixes #93.

There is an extra `@passed = false` in the teardown block exception
handler.

9485443a559be9f6f05a9654c693fee820fba9d2 authored over 12 years ago
Fail fast if Mocha integration is not supported for test library.

- I haven't tested this properly, because I'm currently offline on a
cross-channel ferry.
- I ...

592d548b00f02a0f4a0e46b8e987f1bec235e0e5 authored over 12 years ago
Add first draft of non-monkey-patching test framework integration.

- Support for latest (as yet unreleased) MiniTest. Specifically we need
this
seattlerb/minites...

b67407bbad286a21884aca488e8975c57cd8e89d authored over 12 years ago
I think this `require` is unnecessary and confusing.

c2afde60da290374d9c83e5e42df2d72f749b77e authored over 12 years ago
Workaround a MiniTest bug.

The bug is fixed in
seattlerb/minitest@c8283ff7e6ddf1ef23af9c3c0141a64735f74a9f, but has not
yet...

4c1095ff492097dbf462042657f1bc8f6e3a4b15 authored over 12 years ago
Make TestRunner#run_tests more generic.

- This allows setup/teardown methods to be defined.
- Note that the behaviour for multiple tests...

da5ad550d15a6307c259dce49bbb1a33b54d62cd authored over 12 years ago
Rename Integration module to MonkeyPatching.

This is a more honest name and it also frees up the Integration module
namespace for proper non-...

2334b922881125e5cd1a0ef77b25c81a13e91269 authored over 12 years ago
Use public API of MiniTest for registering assertions.

As suggested by @tenderlove in [1]. This reduces the dependency on
private & potentially more ch...

3131b8d90760b64f5a2384562e3aa706c437a679 authored over 12 years ago
Introduce a factory for expectation errors.

The idea is that we'll be able to use this to raise exceptions for the
appropriate test framewor...

506345ff4846aebceb0afe3922e79c469e22c909 authored over 12 years ago
Bump version to 0.12.1 and prepare for release.

f15288892c1a04a7fac233c3ce917f62f8dd2343 authored over 12 years ago
Don't fail so fast if no test library is loaded before Mocha.

Fixes #88.

This partially reverts c8eba68973c1e489b99c9f7bca2d5888eca0ac14, by
displays a depre...

58f4c010962f3963768d9bbc65c17828521e656c authored over 12 years ago
Remove deprecated access to `Mocha::Standalone`.

The use of `Mocha::Standalone` has been deprecated for years and should
be safe to remove. Use `...

37bb1243a32c22a36711c5a10453e0895140289c authored over 12 years ago
Remove the deprecated file `stubba.rb`.

This has been deprecated for years and should be safe to remove.

d27f0149490947a0ab3a8cedbd9de8e834102788 authored over 12 years ago
No need to specify this explicit version of `hoe`.

Now we're using Rubygems >= v1.8.11 and Ruby >= v1.8.7, this
doesn't seem to be a problem.

25a4c0bc1a1176263ca8f3a3fecb38ffd38381ae authored over 12 years ago
MiniTest v1.4.1 is broken on platforms not supporting SIGINFO.

We get the following errors when running on Travis CI [1] :-

ArgumentError: unsupported sig...

007da1eeb8e81b9f6b2a18dd941bfb09c25b16c5 authored over 12 years ago
Officially support test-unit v2.5.1 (still monkey-patching).

a962578e98f6ed3cfbae98dc21160e52315d85b5 authored over 12 years ago
Include minitest v1.4.1 in Travis CI build.

This version has a distinct monkey-patch and we already had a Gemfile
for it - must have just mi...

840cf6cd172e64ebe2b1b7aeb52428c23eb081ae authored over 12 years ago
Run build matrix with multiple versions of Ruby.

Also the latest version of test-unit doesn't work with either version of
Ruby.

3ceea8681361de1bc1a535d9aa37e3f56bd669ca authored over 12 years ago
A hacky way to run all the builds in the travis "matrix".

Not currently loading `.travis.yml`.

Found I had to additionally ignore `Gemfile.minitest.1.4.1...

1d8a8f3a719e76516867932c7d272173a197ff29 authored over 12 years ago
Improve the API acceptance test.

9c7dde27d0299895f4346400194de6961406f4db authored over 12 years ago
Revert "Intentionally fail build to check Travis CI notifications."

This reverts commit ba873396b64b04418c7692af831900c56ab2a9bb.

eea72881a608ddcb76ee2da4dfcee2a6b218205d authored over 12 years ago
Intentionally fail build to check Travis CI notifications.

ba873396b64b04418c7692af831900c56ab2a9bb authored over 12 years ago
Attempt to get notifications sent to all @freerange peeps.

The default is apparently to send email to the author & committer and
all public members of the ...

7133a5b54cb925739ec1b3b412b7d20ab8802e0d authored over 12 years ago
Rake task was assuming docs had been generated when they hadn't been.

c9d53c562ade0b72c4b31d7ee1c9d99fd51c2d9e authored over 12 years ago
Bump version and prepare for release.

22dbb3bd6f01467cf48fbf9b043596cdb75284dc authored over 12 years ago
Rename method to make it less confusing.

I think this is a carry over from an old name for the library.

5a5275a396bb51399e87f5c53ccac9f5307fea5b authored over 12 years ago
Fail fast if neither Test::Unit nor MiniTest is loaded. Fixes #40.

c8eba68973c1e489b99c9f7bca2d5888eca0ac14 authored over 12 years ago
No need to check `defined?` for outer modules.

As suggested in [1].

[1] https://github.com/freerange/mocha/pull/40#issuecomment-3264438

41a8ddf488fa8888d77eea1b2e9e692b4fe74100 authored over 12 years ago
Officially support MiniTest up to v3.2.0 (still monkey-patching)

20a86b8b4c6b37a86d1b66e065dd06f158c15840 authored over 12 years ago
Officially support MiniTest up to v2.11.1.

d7eacde43924373d786a7ec8bc4bb3730549eea1 authored over 12 years ago
Officially support MiniTest up to v2.10.1.

75dc598ab36c40b745fcc293a64dc7f016d46a37 authored over 12 years ago
Remove accidentally committed file.

bb2bc03a90cbf3cdf380d53263b4e79148e0dbee authored over 12 years ago
Officially support test-unit v2.5.0.

dd765656c20e08c0046177c79dd5da9df2cb41d5 authored over 12 years ago
Do not monkey-patch Test::Unit or MiniTest unless we *know* it's ok.

I had assumed both libraries were changing relatively slowly and that
the Mocha Travis CI build ...

2515ef50b8769436ae2962c1e4e8513c3718007e authored over 12 years ago
Extract matcher block into lambda for clarity.

7f5a89613c7b4e1eff36c54fc57f963ed8f55f11 authored over 12 years ago
Demonstrate custom parameter matcher with arbitary number of parameters.

Relates to #80.

097a8393d1858234fec0bfa56c4efbbd34c8c17b authored over 12 years ago
Add tests to demonstrate using a block as a custom parameter matcher.

Relates to #80.

4bed68a18cbbe9be59cf16fd94d654ec15b083de authored over 12 years ago
Mocha travis CI build has moved to freerange account.

57046a4b7fd53c12fc74c7ce7efbe3abca1b1736 authored over 12 years ago
Brute force publishing to gofreerange.com.

As per freerange/recap@a3a1101c

18635842c2120ef4d35fa2c9d4deb46bb92cd4d3 authored over 12 years ago
Change homepage URL -> GFR, bump version and prepare for release 0.11.4.

8f07a704e3a16c66defabcf1996201ac55a97864 authored over 12 years ago
No need to commit docs anymore now we are publishing with scp.

bae7108fad1f437a9674434215afa03e7f509a4e authored over 12 years ago
Fix references to github.com/floehopper -> freerange.

8f1fb1a154fd02b6c20b5d63cfa3d538b64b58be authored over 12 years ago
Publish documentation to http://gofreerange.com/mocha/docs/

f8c48081da2b98dbbefe5e6ac4027631acad6b1e authored over 12 years ago
Bump version to 0.11.3 and prepare for release.

d01e89e076e3167fba21a46182cbdee3dc9bbe80 authored almost 13 years ago
Fix #78.

It appears that Object#__method__ is already a Ruby method. Who knew!

5504f5ebe32b8a535e71a01588aa8941e5324263 authored almost 13 years ago
Bump version to 0.11.2 and prepare for release.

364dc14bdf9d9409fce4c794f254d7781e62d231 authored almost 13 years ago
Tweaks to 035a7749284600b766e90be72215ea84cff89a1a.

- Bring `Object#_method` into line with other "hidden" methods and use
surrounding double unders...

38a98d14793b765aede5c945ae69cc9435d4e952 authored almost 13 years ago
Merge pull request #77 from sikachu/object_method

Alias `Object#method` to `Object#_method`

035a7749284600b766e90be72215ea84cff89a1a authored almost 13 years ago
Alias `Object#method` to `Object#_method`

This will fix the problem when using Mocha to stub an object that reimplement `#method` method.

8b5053c42cc6cbb31f2e406b615ce0cf1018a836 authored almost 13 years ago
Disable jekyll processing for github pages.

Files with leading underscores were not being served.

5f40c6a1d17ef71414909eef8dacd8cd7c2e8632 authored almost 13 years ago
Remove SHAs and revision numbers from release notes.

Since all but the very earliest releases are tagged in the git
repository, these serve no useful...

9a9eea99c6df255c12eadfa22233d866915056e2 authored almost 13 years ago
Update documentation to incorporate changes in README.

c01c97211cc9ae774b80d2c144baf006e22ae154 authored almost 13 years ago
Add v0.11.0 to list of bad versions.

Note that I have now "gem yanked" all 3 of these bad versions.

ef99b0e9d949985b13831d2162120d497553847e authored almost 13 years ago
Add SHA for v0.11.1 to release notes.

29747dea098406f645248d4e8216d887b82961b6 authored almost 13 years ago
Bump version to 0.11.1 and prepare for release.

d7d1674a536167d9d1b2870d2f08c4c6bf33372e authored almost 13 years ago
It's better to name tests after the behaviour they are testing.

d3e8fbe2e7687f5c89523546bbc67e43b0f0c168 authored almost 13 years ago
Methods with block parameter were not restored properly in Ruby 1.8.7.

- Converting the original method to a `Proc` meant we lost the block
parameter in the restored...

379c9cd7e0abbaf4bd00941633bc0113f956d591 authored almost 13 years ago
Add SHA for v0.11.0 to release notes and update docs.

837537201fb4312c4bfda93fbe9edc003b9886fd authored almost 13 years ago
Update documentation to reflect bump to version 0.11.0.

4dd4c74efee9d020878bee9564eb0e6435ce35ed authored almost 13 years ago
Bump version to 0.11.0 and prepare for release.

fa601c89a7f5314dc3d258391a99c6a9e25cefb3 authored almost 13 years ago
Remove TODO list from repository.

We only need this locally.

8e0751c4dfb6d3cb6911e7080b8abdb4a252ab09 authored almost 13 years ago
Exclude early versions of MiniTest gem from CI for Ruby 1.9.3.

Since Ruby 1.9.3 includes much later versions of MiniTest, excluding
these doesn't seem to lose ...

2f91b2fa7707598f5deea06dd1e8ed28e7b42109 authored almost 13 years ago
MiniTestTest didn't work in Ruby 1.9.3 with old versions of Test::Unit

dd7a728c01da01794b60485e01502f4c505008f6 authored almost 13 years ago
Merge pull request #75 from floehopper/alias-method-alternative

Store original method rather than using alias_method.

This should fix #41, #47, #74 and all t...

4d3e2bb02fcdab5ae8c3b43643b0b01db372ada9 authored almost 13 years ago
Now that #41 is fixed, Travis-CI can run tests under Ruby 1.9.3.

03f0be5b6148f6a8221890d29f35cc82a17b79ba authored almost 13 years ago
Add test to demonstrate fix for #74.

d34267cc47ab82ce1b0e9e306f62e1d3ada5133b authored almost 13 years ago
MiniTest::Unit#run now seems to need an array of args.

It seems like this is somehow backwardly compatible, but I haven't
investigated closely. It may ...

a4b85cec59aa42616285548ff75771c0e38ae9e3 authored almost 13 years ago
AnyInstanceMethod no longer uses alias_method.

- This brings it into line with ClassMethod & InstanceMethod which were
changed in 1802fb936bc5a...

bf518eba791698d348c8f09ab4a70bdaa0b4ab15 authored almost 13 years ago
ClassMethod#hidden_method is no longer needed.

This is because we no longer use alias_method to hide the original
method; instead we store it i...

7dbd8a64af5b3a6d3e45e3d9358c11f564dafe75 authored almost 13 years ago
ClassMethod & InstanceMethod no longer use alias_method.

- Instead of hiding the original method using alias_method, we can store
it as an instance varia...

995bf434634a22d52a49e4972f66c73dd7e40775 authored almost 13 years ago
Provide a mechanism to run multiple test method.

It's sometimes useful to be able to run multiple tests from within a
single acceptance test. Thi...

8b185de6fa636df3fc6b349032461ab2387384f1 authored almost 13 years ago
Extract building of Test::Unit::TestResult into separate class.

7573e4c8111915cf04adbda4e97248dea4abcdae authored almost 13 years ago
Never need to supply a test result to TestRunner#run_as_test.

And in any case this doesn't work with MiniTest.

c45ae6fa8e7cc552e272d545eccb75b3185ace17 authored almost 13 years ago
Prevent stubbing of methods on nil by default.

- It seems very unlikely that anyone would ever intentionally stub
a method on `nil`, since th...

c68fe7671aae3e133052d944dcec1df1222a39d7 authored almost 13 years ago
Update documentation in the light of 172ef5fa.

5b567b44a0c8ac40c0fa229e523268e5ec31bfa4 authored almost 13 years ago