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
Ruby v2.2.9 was released on 14 Dec 2017 [1].
[1]: https://www.ruby-lang.org/en/news/2017/12/14/...
65418eec3e42ccce4d7b83c98c309a15b155b28c authored about 7 years agoRuby v2.3.6 was released on 14 Dec 2017 [1].
[1]: https://www.ruby-lang.org/en/news/2017/12/14/...
883fdc6d6a68a0a37c081e97fd695be1ad9b3c2c authored about 7 years agoRuby v2.4.3 was released on 14 Dec 2017 [1].
[1]: https://www.ruby-lang.org/en/news/2017/12/14/...
586da3df8fcedfb0a058e0b9a60fa4a2e9368fcf authored about 7 years agoThis version was released on 25 Dec 2017 [1]
[1]: https://www.ruby-lang.org/en/news/2017/12/25/...
b5d0deb0f2c45b4fa09da8fa4d49aaa451aa5f13 authored about 7 years agoIn a further attempt to fix broken JRuby builds as per this recommendation [1].
[1]: https://gi...
065cacd6e6b87d9852a6740393d3cdba3570773f authored over 7 years agoIn an attempt to fix broken JRuby builds as per this recommendation [1].
[1]:
https://github.co...
Fix deprecation warning for assert_nil in ClassMethodTest
73af6007aaa994a2d9fa13092689d25c0418e71c authored over 7 years ago
These unit tests are pretty horrible and this one in particular didn't
seem to be testing anythi...
2fc010835fde0bc671b6a2f54d3760b53f453994 authored over 7 years ago
This is a minor release, not just a patch release, because it introduces a
couple of new depreca...
Use do/end instead of { } in stub_module_method_test
0cf70e36b071c390a3f4bfa9c18c39886e18eeda authored over 7 years ago
This is consistent with the way we're defining modules and classes in
other similar tests. I als...
This is consistent with the way we're defining modules and classes in
other similar tests. I als...
This is consistent with the way we're defining modules and classes in
other similar tests. I als...
Rename Mocha::ParameterMatchers::QueryString -> EquivalentUri
fe23b302b08fe8883de2a296cad77a903c830036 authored over 7 years agoBy using `CGI.parse` to convert query string into `Hash`.
f11f30408d9760a11532ffab4fbc9769db873b8b authored over 7 years ago
And `Mocha::ParameterMatchers#has_equivalent_query_string` ->
`#equivalent_uri`.
Also deprecate...
64d18423306adb12ec02aeeabe06d3ea10e6b3ee authored over 7 years agoHandle blank parameter value for query string matcher
0e5f6093218b198fdd5b759d90475aeb481314f5 authored over 7 years agoc72472b87d0d59775d5fcd0d11f3106016bfa07d authored over 7 years ago
Rename QueryStringMatches to QueryString
728bead73b93037c264ab29c62a96d3705a91759 authored over 7 years agoUse faster container-based virtual environments for Travis CI builds
28bbdb5b720a6f677ee89718d8aa61711a47f058 authored over 7 years ago
This feels more consistent with the other parameter matcher class names
and with the existing fi...
The acceptance tests should just check that everything is wired up OK
using a small number of ty...
Fix `includes` matcher for `Array` values
dd2d72c45947e48f2e3bce43dbbdbd6031cbb54c authored over 7 years ago`sudo: required` is the default for repositories before 2015 [1].
Builds for repositories with ...
ca68abbcb05c99927036b496e3ba9175a833cf88 authored over 7 years agoThe following code works with mocha v1.1.0:
MyClass.any_instance.expects(:my_method).with(i...
4c2f5f5bb74a7def18896cf7441cda3d89b81cad authored over 7 years agocedcd94ebbad2adedfd72300e4bcca4660afb216 authored almost 8 years ago
Add Ruby 2.4 and ruby-head in .travis.yml
0faf44fce34d721a0ee095ed4c2edb700ee1bfa5 authored almost 8 years ago
* allow_failures is because it's good to know new version Ruby's issue
as faster before the re...
d28dc257aa43046f2554933bd545cfea370270d7 authored almost 8 years ago
Refer https://github.com/travis-ci/travis-ci/issues/7077 for the issue.
6245a89f63ca5259972c6866b11852fe5417eff9 authored almost 8 years agoSee #276 and the Ruby bug report [1] for more details.
[1]: https://bugs.ruby-lang.org/issues/1...
3e202adb0a647e7e830d620864dd0f90488ab58a authored about 8 years agoDeprecate passing block to mock object constructor
a7bc1b53ace895503b4b5d4915382aead4632e3e authored about 8 years ago
This mechanism is confusing, because the block is evaluated in the
context of the newly instanti...
This is to address the confusion experienced by @ggaston095 in #286.
I've chosen to use two "@y...
39eef73b0216ce70a1107001885f6e3a7daeaab7 authored about 8 years ago
The fix in the previous commit [1] seemed t work [2],
so apply it to all the other Ruby v1.8.7 b...
Based on the comments in this Github issue [1].
[1]: https://github.com/travis-ci/travis-ci/iss...
928b5a402c620e3277de17658050eb170fd2b0e3 authored about 8 years agoThis reverts commit a3deac36416a4be0d0ef9f06c3fc638b9d116d84.
This attempted fix didn't work [1...
fb348ac6e895b68618894246b52e3e926514988a authored about 8 years ago
Travis CI is now using Ubuntu Trusty (v14.04) by default. However,
it appears that rvm cannot in...
Add latest stable version of JRuby to Travis CI build matrix
2e67044e50ac10705db25f0c55dab1d38ed2bf06 authored about 8 years ago2cdef343c1dbac5ca48b8bb2cb70278b1cb65507 authored about 8 years ago
0bc1b9c69cf0c50651c02980f7c375f1f1a5542a authored about 8 years ago
Thus reducing duplication.
6801cd66f84d8ee99420dc8316b821e8c3fe9cd6 authored about 8 years agoFixes #277.
This mirrors the change to `ClassMethod#hide_original_method` in
6f1c8b9b6aa4253c8a...
This was made redundant by e87c03b068efc48267fbcd5a295514077c52b901.
Commit 5f768de62a6b6fb2c1c...
8f58eddf0ff658ad255cf60cedab3c767bbb15c7 authored over 8 years ago
This is the earliest version of Ruby available on Travis CI and
based on some initial investigat...
3c664df7d33c8ef6bbec937d9f4cb726aab57a18 authored over 8 years ago
James made these notes when preparing the most recent release(s). We've
agreed to put them in th...
Simplify implementation of String#mocha_inspect.
1106feb47c5075c2e1d42f12d8425f851f99c1ed authored over 8 years ago
This is an alternative attempt at fixing the problem identified
and addressed in #215 regarding ...
rspec-rails knows nothing about mocha; the mocha adapter is in rspec-core.
0cc039c89b14b3f5dd6d66eca7b560b3cd3d08c0 authored over 8 years ago[ci skip]
Fixes #264.
Previously this seemed to be showing the status of the last build, even
...
Ensure all tests run individually
ccbdbc98f4f3164b0820ea88f4dbb028c4a25ae3 authored over 8 years ago
I was seeing the following 3 failures when running the tests in this
test case:
1. test_should_...
bfd1b3413e7c85518d145cf2844667352529d40b authored over 8 years ago
I was seeing the following 2 failures when running the tests in this
test case:
1. ClassMethodT...
14982c2868b481a7bbd6f8f0c57b2fa7e6fef82f authored over 8 years ago
I was seeing the following 2 failures when running the tests in this
test case:
1. AnyInstanceM...
55417f964e6c9cf53f78b2f3b17399034c0069d8 authored over 8 years ago[ci skip]
25ffe21fc8f2b00e82327e788045fee79f5beb3e authored over 8 years ago8186b86b9ea414316f138585b22c8d47a1b91292 authored over 8 years ago
The Ruby bug [1] is only triggered when we try to get hold of a
reference to the method being st...
f0493f3c457dad0bf553afe5a2958e0eac123b17 authored over 8 years ago
Add Ruby 2.3 to Travis config
8d8e729f5efe48106e9dd7020cf8146280ea6537 authored over 8 years ago4d53b92e413c5a7cb311e991087c9e1cf82f637b authored over 8 years ago
It makes sense to test against Ruby 2.3 given that it's the current
stable version.
ca2c4828f3ec81c810c843e65661e0f25f4f192d authored over 8 years ago
484a6068a6dc65ca82720af22676632f44d0d4b5 authored over 8 years ago
Fixes #271
fdbbc058eb15f11681208dccf86510e8d920982e authored over 8 years agoImprove AnyInstanceMethod#hide_original_method
ae3d6d891bc1130d9aff271784c1a672d1432416 authored over 8 years ago
This is the same as the change made to `ClassMethod` in
43d56671944bd0c61e93eee89f67eb2d1736574e.
This is the same change that was made to `ClassMethod` in
e87c03b068efc48267fbcd5a295514077c52b9...
Fix minitest result errors
74b4ca23b64073f2ca1e6e73e4d444406b903b6d authored over 8 years agoFixes #250.
Although the way they are now displayed isn't great, at least they
are now actually...
Minitest::UnexpectedError is a sub-class of Minitest:Assertion and so
previously all the errors ...
35ba8d715a1c9df05dab8ae9926c729bf25c8a19 authored over 8 years ago
Add assertions to ensure that we're correctly setting the visibility of
stubbed methods when tho...
2c6420966b7533d373cc7ac40d87fbc9bbb430c0 authored over 8 years ago
This test was derived from the tests in #244 and was failing before we
moved to always (in Ruby ...
Previously we only used this mechanism when there were any prepended modules.
Having just chatt...
43d56671944bd0c61e93eee89f67eb2d1736574e authored over 8 years ago
We're planning to use the prepended module stubbing mechanism more widely for
Ruby v2+. This mea...
In version 1.8.23.2 of Rubygems passing `RUBY_VERSION` to
`Gem::Version.new` results in the foll...
Fix typo in docs for equals
6d2281ad793c07c7e3e5c55f8504003ae9df2f5b authored over 8 years agoThe docs say that an exception is raised because `method_1` is not called with an object that eq...
3062be42c5068ed0633833b3e3f962b509f8735c authored over 8 years agoAdded backers and sponsors from OpenCollective
d45b1c2be81da6e7dcb9caea50ca8897f5d6d356 authored over 8 years agonow your backers and sponsors will automatically appear on your readme.
7a1a58d9b8760987f488e6404609e931e060f009 authored over 8 years ago
The underscores are only really necessary for the method that is called on
`stubbee` and they hi...
This commit replaces `ClassMethod#method_exists?` with `#method_visibility`. The
latter still re...
6442acf2ae85c34af15b5b9271baf0379e549966 authored over 8 years ago
Reduces duplication.
2dcfd6773ee5de23de7f2d3af2094279e51a3f49 authored over 8 years agoReduces duplication.
353877c471944579c62da2acb733eef4493b6b75 authored over 8 years agoThis is the equivalent condition we are using elsewhere in the codebase.
9542b162204bbb56cf5d1a3ab4c9c0ec03add62e authored over 8 years agoLater versions of test-unit cause an error like this [1] with Ruby v1.8.7.
While this isn't the...
d2808991ea5bcda3095c572c143b737ea90434d5 authored over 8 years agoThis is an attempt to fix failing builds like this one [1].
[1]: https://travis-ci.org/freerang...
0e3eed1475c2c722940c74d31a597252e7872dbe authored over 8 years agoI'm hoping this will shed some light on build failures like this one [1].
[1]: https://travis-c...
7e1c2bf8f8a2a8e6670375ac5321471b5b917892 authored over 8 years agoThis is an attempt to address this CI build failure [1].
[1]: https://travis-ci.org/freerange/m...
881611ddb1ce888b29119519d71d3aa1cfc56d0c authored over 8 years ago599b1dcd3381945d01981d7f99f43aa0e545af12 authored over 9 years ago
This partially addresses #220 in that the exception raised in #219 would now be
Unable to m...
036b2d37b4305e355fbcb373ed11132525e94cf7 authored almost 10 years agoFixes #221.
9a9c82cd01b8973c0ff51a6d6663141fb9903aaa authored almost 10 years ago
I'm not convinced this dependency which was introduced in [1] is actually
necessary.
[1]: ce3a2...
7fd79561c44381ea56d12243190d22d922d97bce authored almost 10 years ago
The normal `Hash#includes?` method is a synonym for `has_key?`; this
would've been the existing ...
Previously, the `includes` matcher would work with any object that
responds to `include?`, which...
We should be able to created a matcher of the form:
object.expects(:foo).with(includes(has_...
f166fa9e64fa04eb649e108615e7a34320247310 authored almost 10 years ago