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
c.f. f4ad99ca8ef44f8f911fc747ce8bb42b23f0746a for the MiniTest
equivalent.
I'm not sure whether...
d9accd15b183e4f8eb8f451d42371ae1ce4a2db6 authored over 12 years ago
* It turns out that Test::Unit::AssertionFailedError is derived from
StandardError; whereas Mi...
By doing this I hope to make it easier to do something different for the
most recent versions wh...
Hopefully this makes it a bit easier to see what's going on and I
hope it will allow me to furth...
The version checking probably does belong with the adapter itself, but
it was causing problems s...
0835a3343c668f1de7f29aff09de01fa8da3e780 authored over 12 years ago
It might still be nice to have an example of how to write an adapter for
another test framework,...
By doing this I hope to make it easier to do something different for the
most recent versions wh...
Hopefully this makes it a bit easier to see what's going on and I hope
it will allow me to furth...
These require statements don't actually "do" anything and everything
they define is nicely names...
Also remove redundant require statements.
03728e857e79806f2a78c88794aaaf1e51802421 authored over 12 years ago
This provides a simple way to use the new adapters when you want *all*
your test cases to have M...
Both in local build matrix script and (hopefully) in Travis CI.
e3829d8cf2389500ac162804715675ac7a500258 authored over 12 years ago
It was easier to merge rather than re-base in this case, because of the
back and forward of the ...
This is to match up with the reverted commit [1] in master.
1e505d4ab83a49de69fd6a4cde34bd3bd15b1f53 authored over 12 years ago
This is because I want to rename MonkeyPatching back to Integration as
in master [1], but I want...
869bbb48b97adc162258ce26e8340d554fa3da99 authored over 12 years ago
Add development instructions to README
d283d5246397356d4a2af5c6486ead3cf1c613cb authored over 12 years agoThe clumsy code is needed to avoid a regression of #76 in Ruby 1.8.
8d37bbd39e796d71e18c211e48958fdecea0cb3a authored over 12 years ago
@tandem-softworks correctly pointed out that the code was overly
complicated and introduced an u...
e5b83692cc13a94a87a852bea317bea7bbe91610 authored over 12 years ago
It turns out that all but the HEAD version of `ActiveSupport` are using
`Mocha::Integration::Tes...
aeff20317bdf859ce27ebb141f3970c6c9ae94ab authored over 12 years ago
b5745a16acc4b244ce1a3bba2a481426a4eeb5c5 authored over 12 years ago
039a275d6b3d25c0f12438b732f19ab87e63c406 authored over 12 years ago
There is an extra `@passed = false` in the teardown block exception
handler.
- I haven't tested this properly, because I'm currently offline on a
cross-channel ferry.
- I ...
- Support for latest (as yet unreleased) MiniTest. Specifically we need
this
seattlerb/minites...
c2afde60da290374d9c83e5e42df2d72f749b77e authored over 12 years ago
The bug is fixed in
seattlerb/minitest@c8283ff7e6ddf1ef23af9c3c0141a64735f74a9f, but has not
yet...
- This allows setup/teardown methods to be defined.
- Note that the behaviour for multiple tests...
This is a more honest name and it also frees up the Integration module
namespace for proper non-...
As suggested by @tenderlove in [1]. This reduces the dependency on
private & potentially more ch...
The idea is that we'll be able to use this to raise exceptions for the
appropriate test framewor...
f15288892c1a04a7fac233c3ce917f62f8dd2343 authored over 12 years ago
Fixes #88.
This partially reverts c8eba68973c1e489b99c9f7bca2d5888eca0ac14, by
displays a depre...
The use of `Mocha::Standalone` has been deprecated for years and should
be safe to remove. Use `...
This has been deprecated for years and should be safe to remove.
d27f0149490947a0ab3a8cedbd9de8e834102788 authored over 12 years ago
Now we're using Rubygems >= v1.8.11 and Ruby >= v1.8.7, this
doesn't seem to be a problem.
We get the following errors when running on Travis CI [1] :-
ArgumentError: unsupported sig...
007da1eeb8e81b9f6b2a18dd941bfb09c25b16c5 authored over 12 years agoa962578e98f6ed3cfbae98dc21160e52315d85b5 authored over 12 years ago
This version has a distinct monkey-patch and we already had a Gemfile
for it - must have just mi...
Also the latest version of test-unit doesn't work with either version of
Ruby.
Not currently loading `.travis.yml`.
Found I had to additionally ignore `Gemfile.minitest.1.4.1...
1d8a8f3a719e76516867932c7d272173a197ff29 authored over 12 years ago9c7dde27d0299895f4346400194de6961406f4db authored over 12 years ago
This reverts commit ba873396b64b04418c7692af831900c56ab2a9bb.
eea72881a608ddcb76ee2da4dfcee2a6b218205d authored over 12 years agoba873396b64b04418c7692af831900c56ab2a9bb authored over 12 years ago
The default is apparently to send email to the author & committer and
all public members of the ...
c9d53c562ade0b72c4b31d7ee1c9d99fd51c2d9e authored over 12 years ago
22dbb3bd6f01467cf48fbf9b043596cdb75284dc authored over 12 years ago
I think this is a carry over from an old name for the library.
5a5275a396bb51399e87f5c53ccac9f5307fea5b authored over 12 years agoc8eba68973c1e489b99c9f7bca2d5888eca0ac14 authored over 12 years ago
As suggested in [1].
[1] https://github.com/freerange/mocha/pull/40#issuecomment-3264438
41a8ddf488fa8888d77eea1b2e9e692b4fe74100 authored over 12 years ago20a86b8b4c6b37a86d1b66e065dd06f158c15840 authored over 12 years ago
d7eacde43924373d786a7ec8bc4bb3730549eea1 authored over 12 years ago
75dc598ab36c40b745fcc293a64dc7f016d46a37 authored over 12 years ago
bb2bc03a90cbf3cdf380d53263b4e79148e0dbee authored over 12 years ago
dd765656c20e08c0046177c79dd5da9df2cb41d5 authored over 12 years ago
I had assumed both libraries were changing relatively slowly and that
the Mocha Travis CI build ...
7f5a89613c7b4e1eff36c54fc57f963ed8f55f11 authored over 12 years ago
Relates to #80.
097a8393d1858234fec0bfa56c4efbbd34c8c17b authored over 12 years agoRelates to #80.
4bed68a18cbbe9be59cf16fd94d654ec15b083de authored over 12 years ago57046a4b7fd53c12fc74c7ce7efbe3abca1b1736 authored over 12 years ago
As per freerange/recap@a3a1101c
18635842c2120ef4d35fa2c9d4deb46bb92cd4d3 authored over 12 years ago8f07a704e3a16c66defabcf1996201ac55a97864 authored over 12 years ago
bae7108fad1f437a9674434215afa03e7f509a4e authored over 12 years ago
8f1fb1a154fd02b6c20b5d63cfa3d538b64b58be authored over 12 years ago
f8c48081da2b98dbbefe5e6ac4027631acad6b1e authored over 12 years ago
d01e89e076e3167fba21a46182cbdee3dc9bbe80 authored almost 13 years ago
It appears that Object#__method__ is already a Ruby method. Who knew!
5504f5ebe32b8a535e71a01588aa8941e5324263 authored almost 13 years ago364dc14bdf9d9409fce4c794f254d7781e62d231 authored almost 13 years ago
- Bring `Object#_method` into line with other "hidden" methods and use
surrounding double unders...
Alias `Object#method` to `Object#_method`
035a7749284600b766e90be72215ea84cff89a1a authored almost 13 years agoThis will fix the problem when using Mocha to stub an object that reimplement `#method` method.
8b5053c42cc6cbb31f2e406b615ce0cf1018a836 authored almost 13 years agoFiles with leading underscores were not being served.
5f40c6a1d17ef71414909eef8dacd8cd7c2e8632 authored almost 13 years ago
Since all but the very earliest releases are tagged in the git
repository, these serve no useful...
c01c97211cc9ae774b80d2c144baf006e22ae154 authored almost 13 years ago
Note that I have now "gem yanked" all 3 of these bad versions.
ef99b0e9d949985b13831d2162120d497553847e authored almost 13 years ago29747dea098406f645248d4e8216d887b82961b6 authored almost 13 years ago
d7d1674a536167d9d1b2870d2f08c4c6bf33372e authored almost 13 years ago
d3e8fbe2e7687f5c89523546bbc67e43b0f0c168 authored almost 13 years ago
- Converting the original method to a `Proc` meant we lost the block
parameter in the restored...
837537201fb4312c4bfda93fbe9edc003b9886fd authored almost 13 years ago
4dd4c74efee9d020878bee9564eb0e6435ce35ed authored almost 13 years ago
fa601c89a7f5314dc3d258391a99c6a9e25cefb3 authored almost 13 years ago
We only need this locally.
8e0751c4dfb6d3cb6911e7080b8abdb4a252ab09 authored almost 13 years ago
Since Ruby 1.9.3 includes much later versions of MiniTest, excluding
these doesn't seem to lose ...
dd7a728c01da01794b60485e01502f4c505008f6 authored almost 13 years ago
Store original method rather than using alias_method.
This should fix #41, #47, #74 and all t...
4d3e2bb02fcdab5ae8c3b43643b0b01db372ada9 authored almost 13 years ago03f0be5b6148f6a8221890d29f35cc82a17b79ba authored almost 13 years ago
d34267cc47ab82ce1b0e9e306f62e1d3ada5133b authored almost 13 years ago
It seems like this is somehow backwardly compatible, but I haven't
investigated closely. It may ...
- This brings it into line with ClassMethod & InstanceMethod which were
changed in 1802fb936bc5a...
This is because we no longer use alias_method to hide the original
method; instead we store it i...
- Instead of hiding the original method using alias_method, we can store
it as an instance varia...
It's sometimes useful to be able to run multiple tests from within a
single acceptance test. Thi...
7573e4c8111915cf04adbda4e97248dea4abcdae authored almost 13 years ago
And in any case this doesn't work with MiniTest.
c45ae6fa8e7cc552e272d545eccb75b3185ace17 authored almost 13 years ago
- It seems very unlikely that anyone would ever intentionally stub
a method on `nil`, since th...
5b567b44a0c8ac40c0fa229e523268e5ec31bfa4 authored almost 13 years ago