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
ce31b544ca765b930db1dcbb02570863bc7c24eb authored about 1 year ago by James Mead <[email protected]>
I think there's more we could do in this area, but this implements
@dchelimsky's suggestion whic...
All expectations defined within the block are constrained by the
sequence.
For example, the fol...
93fdffd48a51df1215542ace562bcc0b89757d5d authored about 1 year ago by James Mead <[email protected]>f798df83b34fb9d99a9da5c4988a16c5f63f9b88 authored about 1 year ago by James Mead <[email protected]>
343c597924c8afc1d2c9464698544bda8d6613a2 authored about 1 year ago by James Mead <[email protected]>
We updated the code to use Ruby v1.9 Hash syntax in #598. This brings
the docs into line with th...
Tidy up Minitest vs MiniTest references
e7134d55ffb1f95f6e2344aa6b5be676463d3ed8 authored about 1 year ago by James Mead <[email protected]>
As noted by @zenspider in this comment [1], the rename is over 10 years
old, so it seems about t...
All of these are either references to constants internal to Mocha or
documentation referencing t...
As per this comment [1]. Thanks, @Maimer!
As of Minitest v5.19.0 [2], there's no need to requir...
70a36b901c404b192f0ac24e722957186aeb3016 authored about 1 year ago by James Mead <[email protected]>
We've had `Mocha::Detection::MiniTest.version` for some time and it does
a more thorough job tha...
This provides a terser syntax for matching an object which responds in a
certain way, e.g.
...
f086b7e40f9fb9240671641e6e568c87c028ef22 authored about 1 year ago by James Mead <[email protected]>da67bb0dd4d1ba83ef0f4cd3c0efa5a9fb60ee05 authored about 1 year ago by James Mead <[email protected]>
cee0bad637b43d7c6548b1d70f94f9db9b12f034 authored about 1 year ago by James Mead <[email protected]>
It turns out that YARD displays a special section "Dynamic Method
Handling" for classes that imp...
25ed0e59107ea584154f94e77b128af556b7f9a2 authored over 1 year ago by James Mead <[email protected]>
f65a74727497d74787aad8cb3ea0212e76a48acc authored over 1 year ago by James Mead <[email protected]>
It turns out we were relying on the very old [1] MiniTest module name
rather than the newer Mini...
d6470af47263413bc697a7d13c4ef2dd11bf04b1 authored over 1 year ago by James Mead <[email protected]>
345f042be22c89d1a72d4f971bc1362f02a66658 authored over 1 year ago by James Mead <[email protected]>
d07c1f60a1e2dd7dba0c57f2959e61eb712caa5b authored over 1 year ago by James Mead <[email protected]>
e8c21e1bc01ba499b94d3ed0d96ea64dd011dcbb authored over 1 year ago by James Mead <[email protected]>
f409e3a24a38f0413d0f23231741bdc12f336396 authored over 1 year ago by James Mead <[email protected]>
ddef48fe156a610fc761f397d1d90da797f1acde authored over 1 year ago by James Mead <[email protected]>
f3152376c469aac806f35dcaeac19389a4ce0d50 authored over 1 year ago by James Mead <[email protected]>
48162b4eca75063abe52513cf921f059de0da964 authored over 1 year ago by James Mead <[email protected]>
I never look at the data from this and in any case I don't ask
permission to track people on the...
This reverts commit 12f1eef7dbe7cd65104327b6a958cf3b8f50989a.
The problem I reported in lsegal/...
7c6c10c509599956cdd07763d12228b655ea3f40 authored over 1 year ago by James Mead <[email protected]>
I'm not sure why/when this token became invalid, but I suspect it was a
while back when there we...
This reverts commit b8e6d064b8b9bfeb37d6534bbb4e37856dfec5b7.
The problem identified in #591 wa...
4f5bb2f090df10164ba9502ebd615f1d241cc5b5 authored over 1 year ago by James Mead <[email protected]>
It seems as if the recent v0.9.29 release of yard broke my custom
template code. I plan to repor...
It seems as if recent versions of minitest now require a more recent
version of Ruby. Without th...
Ruby v3.2.0 was recently released [1].
[1]: https://www.ruby-lang.org/en/news/2022/12/25/ruby-3...
f7e17636ac66c031f1914f7ee4b32b6a3e7d2353 authored about 2 years ago by James Mead <[email protected]>
Mocha >= v2 only supports Ruby >= v2 and so this check is redundant in
the main branch.
Since support for Ruby 1.8 has been dropped.
089a688e0bd5a6f171c1fc914d8c858c72c32221 authored about 2 years ago by Herwin Weststrate <[email protected]>Currently 4 tests are failing in JRuby v9.4.0.0, e.g. this build [1].
This is due to a JRuby is...
b8e6d064b8b9bfeb37d6534bbb4e37856dfec5b7 authored about 2 years ago by James Mead <[email protected]>
This has only ever supported `debug`, `verbose` & `skip_integration`
options. However, it curren...
Fixes #537
8bc0ad2f343f70c06c6c8278e4307a26bbc9e4ee authored about 2 years ago by Herwin Weststrate <[email protected]>
We do regular testing of ruby-head, so our gem paths include a `+`
which has a special meaning i...
Object#~= has been removed from Ruby v3.2 [1].
Closes #590.
[1]: https://bugs.ruby-lang.org/is...
26b106a540ad57cd73401461451aa2711c541e9d authored about 2 years ago by James Mead <[email protected]>ae9fed4a9f2ef6267302494ae0edf515d4a8a921 authored about 2 years ago by James Mead <[email protected]>
In preparation for the release of Ruby v3.2.
3e460489f7a677fc2cc2c78a887dc7755e551d75 authored about 2 years ago by James Mead <[email protected]>f4a858d9ec3d44762abf22ca84f0af277a2a0651 authored about 2 years ago by James Mead <[email protected]>
d4ac8f296e5727beae5fada6e1e2eaf01e65930e authored about 2 years ago by James Mead <[email protected]>
The regression was inadvertently introduced in this commit [1] and
indirectly led to this issue ...
113b148c865ee45c9fd60a373f698039ba2631c3 authored about 2 years ago by James Mead <[email protected]>
a6d6ac263f3a8ee138771f8ff825a485c88ebf8a authored about 2 years ago by James Mead <[email protected]>
And so should be included as such in the gemspec; not in the Gemfile.
I've specified the '>= 0....
cdeb03562065525a09dda89b5c1592116a4cac0e authored about 2 years ago by James Mead <[email protected]>c5cf3249d9706f3470cbfcfd76e97b4bae87a3d0 authored about 2 years ago by James Mead <[email protected]>
Note that the release notes from the v2.0.0.alpha & v2.0.0.alpha.1
pre-releases have been combin...
Closes #577.
0075824697f5064d747ceb7d72ebb9d7d1e2dfca authored about 2 years ago by James Mead <[email protected]>This addresses an ambiguity which was raised in this comment [1].
Since it's a bit subjective w...
10996795279980d6844461ea1f42512239cc1567 authored about 2 years ago by James Mead <[email protected]>
While strictly speaking the commits relating to these changes [1,2]
didn't make it into v2 relea...
e32e9e5f34db8611b3678b653b4b719eeefb9906 authored about 2 years ago by James Mead <[email protected]>
90e1157d6b2b2b252ea7489dde713d80e1014854 authored about 2 years ago by James Mead <[email protected]>
By including the source location of the stub definition.
This change is a necessarily a bit per...
77c0d4cc79fb5a8ad6f9f5059471f2a18509b435 authored about 2 years ago by James Mead <[email protected]>
This is useful when using `ExecutionPoint.current` to make tests more
robust.
9cd08be9628f3b7a95e2d52e84488b19775b4352 authored about 2 years ago by James Mead <[email protected]>
31d6887b4ad58ea7dd786f91e10f3a2c74edeb1c authored about 2 years ago by James Mead <[email protected]>
1c617175018c9f8b00fd14eeb4395b325a674361 authored about 2 years ago by James Mead <[email protected]>
* Make them more consistent with the docs for Expectation#with.
* Mention & explain deprecation ...
fed6808da2d02354a091fe25b9811dad09e785af authored about 2 years ago by James Mead <[email protected]>
da7237cd7ee63e14216065a632e43aa24fbf83e4 authored about 2 years ago by James Mead <[email protected]>
This converts the deprecation warning introduced in
d66c2b501685fe827a2c5e2236475e78d8082c11 int...
fa17b1148b6c160f92f40a5ede7e553fb1c864f2 authored about 2 years ago by James Mead <[email protected]>
73493761ad9eb495355c5e6a0c7e027cce343252 authored about 2 years ago by James Mead <[email protected]>
d82218a826587c94d58edb450689fdf0aa010748 authored about 2 years ago by James Mead <[email protected]>
The following methods were deprecated in #421 and released in v1.10.0:
* Configuration.allow
* ...
In Mocha v1.10.0 some undocumented behaviour changed without any prior
deprecation warning.
* T...
1473ee25ff77a2bf218df6c11a68d62af61da2d0 authored about 2 years ago by James Mead <[email protected]>
This removes Configuration#reinstate_undocumented_behaviour_from_v1_9
and its setter. The behavi...
This removes the optional deprecated behaviour in Expectation#yields &
Expectation#multiple_yiel...
This removes the optional deprecated behaviour in API#mock, API#stub &
API#stub_everything which...
I'm not sure these calls to DeprecationDisabler.disable_deprecations
were ever necessary. Curren...
This was missed in 472d54161fab9bbd093a8b8c6928a423cbad9897.
257b4cb4abb38a9e5b0730125b2ed4afb412f0c0 authored about 2 years ago by James Mead <[email protected]>
Previously this was the recommended way to integrate Mocha with a test
framework. However, this ...
If someone is explicitly requiring "mocha/test_unit" or "mocha/minitest"
then the implication is...
Versions of minitest earlier than v3.3.0 are no longer supported.
Closes #541.
ca69dc9e13c538625df60ecb0a37c7da89340291 authored about 2 years ago by James Mead <[email protected]>
Use the value returned by Detection::TestUnit.testcase as the target of
the TestUnit::Adapter mo...
Gem versions of test-unit earlier than v2.5.1 and versions of test-unit
from the Ruby v1.8 stand...
This will generate a deprecation warning if Ruby >= v2.7,
Configuration#strict_keyword_argument_...
When strict_keyword_argument_matching configuration option is not set.
c294fe707b79d256dd1880baa141f9ea9471bd01 authored about 2 years ago by James Mead <[email protected]>Closes #562.
This introduces a new `strict_keyword_argument_matching` configuration
option. Thi...
With the introduction of strict keyword matching, we're explicitly
distinguishing between positi...
Previously in the description of an invocation or of a parameter
matcher, a single Hash argument...
When the strict keyword argument option is enabled, an expectation
expecting keyword arguments (...
This marks Expectation#with, Mock#method_missing, and the method defined
by StubbedMethod#define...
This option doesn't currently do anything, but in a subsequent commit it
will determine whether ...
We're planning to change how this works once we're explicitly
distinguishing between keyword and...
This is to better characterize the existing behaviour. It should also
make it clearer what chang...
Make more of a distinction between test failures and errors. Explicitly
assert for what we are e...
This was introduced in this commit [1] apparently as a precursor to the
addition of ParameterMat...
I think this makes the code more readable.
af2194c4f4465200fd07fd078f2dbefd9f712360 authored over 2 years ago by James Mead <[email protected]>Closes #552.
26c4ae1ecd1057751685a5474932d05701a2c294 authored over 2 years ago by James Mead <[email protected]>ddd9b0c711b936871c305eff216927696fc5e9b4 authored over 2 years ago by wasabigeek <[email protected]>
2e77d57c49f9ed995adeb039ea769e2b4bb07d20 authored over 2 years ago by wasabigeek <[email protected]>
a47ff4dd4ec53187ccf2cfbec3c0ff3fd57ce6dd authored over 2 years ago by wasabigeek <[email protected]>
0cb193a303a3a2d2b57a7bba129152fd67b7b413 authored over 2 years ago by wasabigeek <[email protected]>
30ac58936999771cd29ed11852dc084ab8053b95 authored over 2 years ago by wasabigeek <[email protected]>
f2819c4095a5c8c656c1b75756d4ee227074549d authored over 2 years ago by wasabigeek <[email protected]>
f38be1d463c385f750fd9ca8b635fd57efcde36b authored over 2 years ago by wasabigeek <[email protected]>