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
Simplify the `Mockery` "API" that is used by the `Hooks` module i.e.
there is no real need for `...
It is possible for `Module#public`, `#protected` and `#private` to be
redefined on descendant cl...
The Mocha integration tests are unfortunately dependent on the
exact format of the test results ...
This change is specifically to cope with the nasty re-defining of
classes that is done by the `m...
Use `require` instead of `load` with `test/unit/version`.
Other gems also require `test/unit/...
e623a264d99415520b40bff9cbb6a4065b741d2f authored almost 12 years agoc2de103f1176ff9f79619f919386a49bdddf121b authored almost 12 years ago
Other gems also require test/unit/version. When this gem loads the
same file it over writes th...
I was seeing the following warning message:
The source :rubygems is deprecated because HTTP...
83e80c47e86f5ac6de09a51bc5f3872a0c528205 authored almost 12 years agoThis is to avoid spurious git diffs.
6cca59f71665fa95eceb387070c958480dacec5e authored almost 12 years ago2f2e7f560adf38610aa6e9d4820211c388ce75da authored almost 12 years ago
We were only testing stubbing of the public and protected methods on
Object.
Note that `#method...
7a0760a8f2dfcf093d3eea68800b7c0b0c89f94e authored almost 12 years agof6060ee94af17a8e1e921d17e0d5fa20be772752 authored about 12 years ago
aa8b742f5fdf8c92304ad5c09d577d8c4ad89475 authored about 12 years ago
0830b5b096d78ff09e5eb54e94a5fb897783360e authored about 12 years ago
I prefer unabbreviated variable names.
8cdc99f1eb0fcee28256f507f1f178f8016dca05 authored about 12 years agoaa502fe7bc9bb5d82f53be1cf445f8063fcca9a4 authored about 12 years ago
d08e97f7ef31c12e64294e46df693f3bc9ced6a2 authored about 12 years ago
715e4677044180a35b4d254ec20db40f85cacf84 authored about 12 years ago
See http://badge.fury.io/
d4a724d8183aaf821b8906b9a0342b26ff1603c2 authored about 12 years ago
Customising YARD templates is a bit obscure and this was the best I
could come up with. The java...
b16ed30a9923ae52322d5bb44a010692d3e9ed62 authored about 12 years ago
@voxik wanted to run the tests by simply requiring the files rather than
running the rake task. ...
Given a method which is re-declared with a different visibility lower
down the ancestor chain, a...
This is useful if you have a class that is awkward to instantiate. The
implementation uses `Clas...
011ae629839006a7dc47216a8b4eda7bfa3413ca authored about 12 years ago
Elsewhere we are using `# =>` to display the expected output and not
using `Test::Unit::Assertio...
4107c1bbbf216dee1bd308101f2f69a0b818532d authored about 12 years ago
- I don't abbreviated variable names or variable names with digits in
them, so I've got rid of...
Explicitly populate the key and value in different cases, rather than using flatten.
Untested bec...
I suspect there may be a lot of libraries out there that are requiring
"mocha" directly will now...
60e776e9c5fc535004ec3fb556068afb72e1421e authored about 12 years ago
0c662f7e5cd324505fcd9ddf2ca2db2445ce9b14 authored about 12 years ago
a6deac17ee9e97002a8a5978a9c99638b8fa4639 authored about 12 years ago
b8738e788cec8c8ab5f7db8fff47809cce9b806d authored about 12 years ago
Fixes Travis link in readme
721e65e0d7422a28a17fcbbb5bbd296ce3cf5f65 authored about 12 years ago16541382a4d4887b5ee9110831955667979f3275 authored about 12 years ago
81963b7735b224c0cfda9dce2de8efb31fdcedd5 authored about 12 years ago
c1eaec2df2249ccf09e03a9ec70858866d17c3b3 authored about 12 years ago
`require 'mocha/api'` is not the definitive way to integrate a test
library with Mocha.
The idea of these files was to provide a way to explicitly integrate
with either MiniTest or Tes...
The latter is now deprecated.
4c4ae254d4c9885f139f6f794ff14acf7b71e0f7 authored about 12 years agoc3c1add2c206dbb161b739d6643bd5c2c45604e1 authored about 12 years ago
This was originally fixed in 7a84e44b99853c9753589d6a1c5164d3b57f16e3.
70e21abcdccea9b2af2430ce919ac0e33d76277b authored about 12 years ago
* For the moment, `require 'mocha'` will continue to work as before, but
will issue a deprecat...
I'm about to issue some important deprecation warnings, so I want as
many people as possible to ...
177e9cc6a5fa4d16cd8a2dbddfc18cb4ba964542 authored over 12 years ago
This should speed up the build time.
7784760c314ce955c253cf277696368ef60d6805 authored over 12 years agoTo improve test coverage.
5b9c961d8ff91f129b80969017560c845f9283a9 authored over 12 years ago
These require statements meant that Test::Unit was always loaded when
Mocha was loaded. This is ...
These Integration modules ought to be able to decide whether or not they
are appropriate for the...
Based on a suggestion from @lazyatom. Thanks!
Now integration only happens when the newly intro...
3405bfd18cba6fcdb59d1827d20c447d5dcbefa8 authored over 12 years ago
`mocha/configuration` is required via `mocha/api` and `mocha/mockery` so
this top-level require ...
Mock#respond_to? doesn't work with a string argument
edb01b94125ec88c83cf70cabed78b5cd55ff5be authored over 12 years ago
To more closely mimic ruby's `#respond_to?` behaviour,
MethodMatcher#match? will now return true...
457e753ec0c3ce975159c46b8cdf68010caed41f authored over 12 years ago
02ead974cf7ed128e986683082044e6bf012e2b3 authored over 12 years ago
15874750a9e7d0823bce8397469734865cc67635 authored over 12 years ago
e6cda82eeb25d4cc212edf67d7320019b2137697 authored over 12 years ago
Using a link to Github's contributors graph reduces the maintenance
overhead of keeping the list...
52d4552fd14d55bf23180f0b6a108261a6b136e9 authored over 12 years ago
This reverts commit 0d835123d7f4d641461c0e6b0b9d023150dd8f9e.
These tests are used by the perfo...
40679d6dc86b1c62290f66ad92733c5495a63f1c authored over 12 years ago
* This was achieved by setting `Gem::Specification#has_rdoc` to
`"yard"`.
* I also found it wa...
This is part of an effort to make the documentation render correctly
on both Github and elsewhere.
d7e0d5cd7d66575db117d11b3ae72cb3c47b438c authored over 12 years ago
Although v0.11.0 was yanked at one point, it was re-instated fairly soon
afterwards.
e52b5297a90eb01c04ad3ba4be436c2ca8f59634 authored over 12 years ago
This is part of an effort to make the documentation render correctly
on both Github and elsewhere.
This is part of an effort to make the documentation render correctly
on both Github and elsewhere.
This is part of an effort to make the documentation render correctly on
both Github and elsewher...
I was seeing the following error :-
[error]: Missing 'redcarpet' gem for Markdown formattin...
4dae54c39001c0ed4d8fd9dd504f7f0204da51cd authored over 12 years agoThis reverts commit 22c4422e3511d461193b96df194925261bcb00c8.
This commit didn't solve the prob...
a65a48fca10277b5a36b757565804d952128352d authored over 12 years ago22c4422e3511d461193b96df194925261bcb00c8 authored over 12 years ago
a100d4ded5918fba0e1154d6ae4c8dfc8d306703 authored over 12 years ago
22816486fe36c55877e7d72bf1c42143285b35fe authored over 12 years ago
5db66214bb3b717b96c50aa405511fd0419a001c authored over 12 years ago
Still need to add some more documentation to the README, but this is a
good start.
0d835123d7f4d641461c0e6b0b9d023150dd8f9e authored over 12 years ago
a61a1311b5589bea41cf6bbb342793617c5350d1 authored over 12 years ago
29911d37b6af908ece45727468ae7dcb89fa134f authored over 12 years ago
c24d424ed736816f804bd814ed3e8da3ccf807e4 authored over 12 years ago
a132f80a62885de8b48be26eea88ff9c6f9480cc authored over 12 years ago
a44682d4f08ec90ce438f9d5dec21c04e311a715 authored over 12 years ago
I think it's now more confusing for them to be somewhere different.
After all the only differenc...
9ef5615f790552d2e079a0cea061754120358445 authored over 12 years ago
951ce72138e786e709b0b55059426c806a3a295d authored over 12 years ago
Also improved the level of isolation between these tests and other
tests by only including the m...
34cd93688ab10bfa5a58b9c0ad3d6769803a67ef authored over 12 years ago
8b054252c061c0c8972ce8e302aef1fffd6a6ba4 authored over 12 years ago
While using Test::Unit's #add_assertion method might somehow be more
*correct*, I can't see how ...
50018b1db9ce00e4d2dcc48936601e88c71ea9f9 authored over 12 years ago
21aae4582b73703c4b3bcd949246f8d3172cdc7e authored over 12 years ago
4a8923c4248e7516d49ab9818076771b1de3dd4a authored over 12 years ago
024fdb8897a3832af00f7dfc6d11825d5c083cab authored over 12 years ago
Also make each MiniTest patch responsible for describing itself.
3e189b7ec50698deb9f82c462faf9f668cda6f8e authored over 12 years agoAlso make each Test::Unit patch responsible for describing itself.
1758f8e9a59fe0b3e70778eb83744ad1439a77d3 authored over 12 years ago
Although currently no code is run within `#mocha_setup`, it makes more
sense to run it before an...
* The so-called "adapter" tests are really integration tests in the
sense that they check that M...
No more monkey-patching! Yay!
953650d7994b549ac73999ab016b3d03a594e1bc authored over 12 years agoNo more monkey-patching! Yay!
b37388693be15f327b757b916dc97bb8f12775d5 authored over 12 years ago
* It's reassuring to see that the changes I independently arrived at
in e9d05cc2acf3a0bf5fbc78...