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
Inspired by #207 and #390. It's still not perfect, but I think this is
definitely an improvement...
d07d41301de9bcce709d5a007ae4254a84abeedc authored about 5 years ago
7b1857ebf8e45b1a5f26161d1083655002f68727 authored about 5 years ago
These sections are not Rails-specific and so I think this order makes
more sense.
5c4d12b02ef8dcc5fadbbc3d1136a850ff4d19d4 authored about 5 years ago
b65b070fc64683d602a1fd7c1c777e29ee2f2a7d authored about 5 years ago
3fc8e307b148cea504dad04fc6aef15da9adbcb5 authored about 5 years ago
0f9042678c593fd03266f3a0c354ee8f9d737e92 authored about 5 years ago
This regression was introduced in v1.10.0 in this commit [1] and is
causing the test failures de...
The logic in this class was moved into the Parameters class in this
commit [1], which was rename...
4881cc58f667e2df4e590a92889830b98a675a7f authored about 5 years ago
...since the attrs were only used internally and were giving rise to a
'warning: private attribu...
By using the single-line version.
Note that the comment still shows up in the source code in th...
d8019eed369bff98b76ab05d7abe6fdc1ad71f86 authored about 5 years agoPR: #442
A deprecation warning is now displayed when a mock object instantiated
in one test rec...
To reduce complexity of Mock#method_missing method.
This means we no longer need to disable a n...
2389ff35f4d377d4334802b4ffc3d92c42d5cf8e authored about 5 years agoTo reduce the complexity of Mock#method_missing.
d53327a3d4f93867708984d22f763384d5f68d25 authored about 5 years agoc.f. RSpec's "Doubles cannot be reused in another example" scenario [1]
[1]: https://relishapp....
d66c2b501685fe827a2c5e2236475e78d8082c11 authored about 5 years ago6672b624e319bd6e4dbff9c32a98eddf26a03bd2 authored about 5 years ago
109829ace0ba6b48896018b93bad7a77e3510e70 authored about 5 years ago
I meant to do this when I released v1.11.0 so that if a project's build
had started failing in v...
54b1b60e0ef2f078c5d6239a86c577d186b135fc authored about 5 years ago
cbb01cbe7854e97196b734e0dad53ebeb15c9ab0 authored about 5 years ago
PR: #441
2ddbdfd2c240eed79311afb1a984cd454fbbc4d9 authored about 5 years ago
Now that Expectation#with_block_given exists, we can make a more useful
suggestion of how to avo...
I think it's useful and more consistent to include something in the
invocation description to in...
This allows expectations to match only invocation which do or do not
supply a block. The default...
This was highlighted when investigating this issue [1]. It turned out
that this project was call...
c2cac911cf0be9a4482ddb6a5b8d9228ff3fa5fc authored about 5 years ago
1070fc02015a8ea36ad50782f80b557813595c02 authored about 5 years ago
PR: #439
Co-authored-by: Nitish Rathi <[email protected]>
7f2767f5b02e22e457348345a2063948c8930f56 authored about 5 years ago
Now there's no longer both a YieldParameters#add method *and* a
YieldParameters#multiple_add met...
This means that the parameter_groups instance variable in the
YieldParameters class is now just ...
c002e857e42fccf398be424d22a4ae548eb399cb authored about 5 years ago
By inlining local variables and deleting unnecessary calls to
YieldParameters#next_invocation.
087aca9bea914e79c3c661dba54a1d0ea5cbbd80 authored about 5 years ago
The behaviour of MultipleYields is fully covered by YieldParametersTest.
4f8c4dcebbdfd3507ea3356edd7926bcd8084271 authored about 5 years ago
This will now only ever be an instance of MultipleYields, so there's no
longer much point in ass...
We're now using MultipleYields to implement the functionality that was
in this class.
By default an Expectation and hence a YieldParameters is not meant to
attempt to yield to a matc...
We're now using MultipleYields to implement the functionality that was
in this class.
2ce6c93caaf5549724e3bd05c70c2d10f4ef526c authored about 5 years ago
The former is just a special case of the latter.
f70389dac2d80bd6519bb017ab48ebaf05f4c296 authored about 5 years agoThe former is just a special case of the latter.
eb76a82578b87d12ea5c04ed6e95044232dc3ade authored about 5 years ago
This allows docs to be generated without using rake using almost the same
options as with rake (...
9fc5911bb7d77cc4c10b2875508a6be332bf6592 authored about 5 years ago
I should've done this in this commit [1].
[1]: b6049b4b7891a5070c7d97a9511aafacec53af39
932d1166a36b3601002cdcd95e8160e5a05df829 authored about 5 years agobca55ae65b7c2faf62ebd18d0fc0421f2a612055 authored about 5 years ago
f8bc4943dbd5e9921ff86e6ccd76ed3c78a5d403 authored about 5 years ago
PR: #438
The new configuration option is `reinstate_undocumented_behaviour_from_v1_9`.
46942e28891022b82845e6c528b80fe39d6edc37 authored about 5 years ago
In v1.9 if Expectation#yields or Expectation#multiple_yields was called
on an expectation, but n...
I think this is a more natural home for the block.
72dac85f0aced2c9a27a3de3d6db3e0f46e80668 authored about 5 years agoThis reduces duplication at the callsites.
b6049b4b7891a5070c7d97a9511aafacec53af39 authored about 5 years ago
The old behaviour is reinstated, albeit with deprecation warnings, if
the reinstate_undocumented...
In preparation for adding a deprecation warning specific to each of
API#mock, #stub & #stub_ever...
7a60ebcba5013d54d8e8bbd39a891ebd85d174c0 authored about 5 years ago
5bb2210a66d2e5e3f826d56a502466836c7491c6 authored about 5 years ago
f44776e72b5e7dbe3c69ed309f0b35cff132adea authored about 5 years ago
Fixes #432 by short-circuiting the method_exists? check in case the treatment of
the action is t...
Cucumber's World method builds an instance of a "world"
object and then *extends* that object wi...
0b768ee932009b1bcca7a3fd7dda7603b7c23c24 authored about 5 years ago
059dafb738980665dd2e179a8cf55da4890b2c01 authored about 5 years ago
d30c1717134f8a631bcc531c3228d1b50d3f6670 authored about 5 years ago
388f44d778c2239b52ffe5c52ace253419f91bd3 authored about 5 years ago
13ab797bcf6afd6c4d7d9f6a83bed8c8b9cc3b26 authored about 5 years ago
2359afc123e0de558e9683a81a6a41bf20fd6877 authored about 5 years ago
ef70734de1844f587846dbb71b720f4b8b06471f authored about 5 years ago
PR: #428
These methods are not part of the public API and yet they are included into every cl...
894243ee7d7a76d5c2897b09727118f20a8f65cc authored about 5 years agoc.f. #70
This method is not part of the public API and yet it is included into
every class in A...
c.f. #70
This method is not part of the public API and yet it is included into
every class in A...
This is not part of the published API.
5530fda174a84bacdabce614da3c4c36b75c7a89 authored about 5 years ago6a81f1d9f0a0cdc01b921fbb74f70db8ef479ed9 authored about 5 years ago
Due to the number of changes since the last release, I'm releasing an
alpha version which I can ...
f8ab3fc5dd413ea222522ea653645e4c46faa690 authored about 5 years ago
By correcting the name of the `param` definition to match the actual
parameter name.
By nesting `param` definitions inside the appropriate `overload`
definitions. In a similar vein ...
Apparently Rails plugins in the original sense (i.e. installed into
`vendor/plugins`) were depre...
Versions of minitest earlier than v3.3.0 (27 Jul 2012) and versions of
test-unit earlier than v2...
This is long overdue. Extended maintenance of Ruby v1.8.7 ended on 31
Jul 2014 [1]. Actually dro...
PR: #421
This introduces a new (hopefully less-surprising) configuration mechanism and adds a...
2ad3031f1afc47d9cd3b83370d490d952fab2b52 authored about 5 years ago
This seems like a better home and makes the require statements more
intention-revealing/explicit.
730528a54512aa99b0b224cd37c6329d75efd46e authored about 5 years ago
See this commit [1].
[1]: a65ea1ed3dce43cbc2cc16b3660afd2cce3db33e
8e786ea6aedcf9f374f9561a5b7c1a141291122c authored about 5 years agof8d42b82ff124de9758d8f2a0d396b92dcdf5947 authored about 5 years ago
So that this configuration option can be set without using the
MOCHA_OPTIONS environment variabl...
I don't think the string itself contains an "error" as such.
49151dd7573dfaa051683687857ac587162275cd authored about 5 years ago948a0c23a6b230a16d0cd36e3d0dcf77f664d4be authored about 5 years ago
This means that, for example,
`Mocha::Configuration.allow?(:stubbing_method_unnecessarily)` is
r...
3a859f81d5bac2fdb7a59134854321512fb8add1 authored about 5 years ago
e553bde0b40bb6e115f267dff87df350372be1d6 authored about 5 years ago
For example:
Mocha.configure do |c|
c.stubbing_method_unnecessarily = :prevent
...
I want to deprecate Configuration.allow, .prevent & .warn_when, but the
new methods like #stubbi...
This makes setting configuration options terser and less non-standard, e.g.
Mocha::Configur...
5c37d19eef8a28c284c30561bb4081edccb9c391 authored about 5 years ago266ce71c8675c46aeafae1da01245ea3544aa5cc authored about 5 years ago
I was seeing deprecation warnings like this one:
Mocha deprecation warning at /Users/jamesm...
3507344a051242b64705ff400fb2be76a7b1e1e0 authored about 5 years agoPut deprecations into effect
b24d460694d7847088228c62a21b5f306d3faeba authored about 5 years ago
This file was renamed to mocha/minitest.rb in v1.4.0 in this commit [1]
and can now safely be re...
This was first attempted in v0.12.0 in this commit [1], but then
partially reverted to display a...
This method was replaced with ParameterMatchers#equivalent_uri in v1.3.0
in this commit [1] and ...
This functionality was deprecated in v1.3.0 in this commit [1] and so it
can now be safely remov...
These files were deprecated in this commit [1] in v0.13.0 and can now be
safely removed.
[1]: h...
9aec829452d1e4ee25adbdd5b7bacffc93401fb1 authored about 5 years ago