Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/freerange/mocha.methods
https://github.com/freerange/mocha.methods
Fixed mistake in Ruby 1.9 compatibility changeset:206 which led to errors like this one reported by Ned Wolpert... NoMethodError: undefined method `ord\' for 63:Fixnum. Would probably be better to use explicit version checking rather than respond_to? calls, but I'll sort that out later.
f15364dc644b0ec8739c148a0af9a844eea23fbc authored about 17 years ago
f15364dc644b0ec8739c148a0af9a844eea23fbc authored about 17 years ago
Compatibility with Ruby v1.9. All test errors and warnings fixed.
d81c0871f8366d074781ab316da492d65369ce07 authored about 17 years ago
d81c0871f8366d074781ab316da492d65369ce07 authored about 17 years ago
Initial support for sequences for constraining order of expected invocations.
82bf2f8066f0c473d72f6d43940ce31f936062ee authored about 17 years ago
82bf2f8066f0c473d72f6d43940ce31f936062ee authored about 17 years ago
Added partial_mocks_acceptance_test to improve coverage.
e339d8d0e21278e3a9d4e2bccd1e88d902cecfb6 authored about 17 years ago
e339d8d0e21278e3a9d4e2bccd1e88d902cecfb6 authored about 17 years ago
Make the acceptance test test_runner display as much information as possible when a test fails unexpectedly.
48569d5d632b3d333a97e35ecad8845bb1ddb4c6 authored about 17 years ago
48569d5d632b3d333a97e35ecad8845bb1ddb4c6 authored about 17 years ago
More relevant name for test and no need to call to_s on method_signature because it is no longer an object in its own right.
24ceebabed1ea9ba525e3e973ad27129a5bca648 authored about 17 years ago
24ceebabed1ea9ba525e3e973ad27129a5bca648 authored about 17 years ago
Refactored method_signature into method_matcher and parameters_matcher.
d5f301ca6b8e5b7ac3d51d2754cf3094cc45c546 authored about 17 years ago
d5f301ca6b8e5b7ac3d51d2754cf3094cc45c546 authored about 17 years ago
Added has_entries parameter matcher and allow hash argument for has_entry parameter matcher e.g. has_entry(:key => :value) as well as has_entry(:key, :value).
ee62c5af2d284a86e3c5294d6b62f33b222bf233 authored about 17 years ago
ee62c5af2d284a86e3c5294d6b62f33b222bf233 authored about 17 years ago
Added platform to gem specification to avoid bug in rubygems 0.9.5 - see http://www.dcmanges.com/blog/rubygems-0-9-5-platform-bug and http://rubygems.org/read/chapter/20#platform.
409934506d92b6b84c751416e7690442c855056a authored about 17 years ago
409934506d92b6b84c751416e7690442c855056a authored about 17 years ago
Moved abbreviated examples into test case to avoid the confusion in bug report #15977
755c0a51abcb6a10a9cc6c18b3f0865bc35cd4e8 authored about 17 years ago
755c0a51abcb6a10a9cc6c18b3f0865bc35cd4e8 authored about 17 years ago
Added useful links.
f0e68f40a3885fad7c3d1ec06083043a10a82ad8 authored about 17 years ago
f0e68f40a3885fad7c3d1ec06083043a10a82ad8 authored about 17 years ago
Fixed bug in not parameter matcher.
2c2eaddff3c75d63849bde83556c5ae66d215b61 authored about 17 years ago
2c2eaddff3c75d63849bde83556c5ae66d215b61 authored about 17 years ago
Fixed bug in any_of and all_of parameter matchers.
5f79fd105bb0910f4afb1c154925ece10878d1ae authored about 17 years ago
5f79fd105bb0910f4afb1c154925ece10878d1ae authored about 17 years ago
First stab at adding support for optional parameters (i.e. ones with a default value specified in the method definition). This will break any custom matchers out in the wild.
7ac9a1628aede589f9a8d2faa558e8827d855053 authored about 17 years ago
7ac9a1628aede589f9a8d2faa558e8827d855053 authored about 17 years ago
Optional block passed into mock initializer is evaluated in the context of the new mock instance and can be used to set up expectations.
407deb3a909331334200199cd14e34e601d6377e authored about 17 years ago
407deb3a909331334200199cd14e34e601d6377e authored about 17 years ago
Refactored implementation of stub_everything.
cfde3d8241326b8c89960af41709bec1ca44b1d0 authored about 17 years ago
cfde3d8241326b8c89960af41709bec1ca44b1d0 authored about 17 years ago
Added 'Not' parameter matcher. Had to use capitalized 'Not' because 'not' is a ruby keyword.
2408045748b4318756595382cb57cfe5175ec995 authored over 17 years ago
2408045748b4318756595382cb57cfe5175ec995 authored over 17 years ago
Attempt to fix brittle test so it works on slicehost machine.
f4859df5aad9d7c667f83dadd5b3137fbee2d024 authored over 17 years ago
f4859df5aad9d7c667f83dadd5b3137fbee2d024 authored over 17 years ago
Added unit test for MethodSignature#similar_method_signatures.
6f82e297e72053a556d14d3114f458e03429239e authored over 17 years ago
6f82e297e72053a556d14d3114f458e03429239e authored over 17 years ago
Added unit tests for MethodSignature#match?
088a4d61b99ba8b36c33bf30f2e673b9bc4c7598 authored over 17 years ago
088a4d61b99ba8b36c33bf30f2e673b9bc4c7598 authored over 17 years ago
Simplified logic in MissingExpectation.
bab087e466cb73ffe74b03a3a2f99166c6c11eb2 authored over 17 years ago
bab087e466cb73ffe74b03a3a2f99166c6c11eb2 authored over 17 years ago
Moved @mock instance variable from Expectation into MethodSignature.
d879c3ca260acdf154dd71ed4e9799933e580874 authored over 17 years ago
d879c3ca260acdf154dd71ed4e9799933e580874 authored over 17 years ago
Moved method_name into Parameter class and renamed class MethodSignature.
142ad22dfaabf4947cf4ad4f3f4d47c8725fb190 authored over 17 years ago
142ad22dfaabf4947cf4ad4f3f4d47c8725fb190 authored over 17 years ago
Combine AnyParameters into Parameters.
6ec67dfa9b59ec2337a0e244ae12948a1f2403a5 authored over 17 years ago
6ec67dfa9b59ec2337a0e244ae12948a1f2403a5 authored over 17 years ago
Simplify logic in Parameters#match?
52309c90d4bab994c3dc6ce3fbe086eb2ce5308a authored over 17 years ago
52309c90d4bab994c3dc6ce3fbe086eb2ce5308a authored over 17 years ago
Rearranged order of member variable assignments in Expectation#initialize.
7dedddfdf32bf24a913028922621f63e7f670338 authored over 17 years ago
7dedddfdf32bf24a913028922621f63e7f670338 authored over 17 years ago
Simplify Expectation#match logic.
abde9736a160257cb6c4a2bb16b09cd009430693 authored over 17 years ago
abde9736a160257cb6c4a2bb16b09cd009430693 authored over 17 years ago
Refactored parameter matching by block into Parameters class. Renamed Parameters#== to Parameters#match?
e5f95021c9b91deb24a52d005254537f01411a91 authored over 17 years ago
e5f95021c9b91deb24a52d005254537f01411a91 authored over 17 years ago
Removed defunct @final_expectation member variable from Expectation.
bcf74bf65add912864f9f60903572f96e36c5a57 authored over 17 years ago
bcf74bf65add912864f9f60903572f96e36c5a57 authored over 17 years ago
Removed remaining ruby warnings from tests.
884e26e8a5ab8796339913671c71935d3e717a66 authored over 17 years ago
884e26e8a5ab8796339913671c71935d3e717a66 authored over 17 years ago
Moved PrettyParameter logic into Parameters class.
9b9a8279d5a85afb5344181d89690fa2ab5fad83 authored over 17 years ago
9b9a8279d5a85afb5344181d89690fa2ab5fad83 authored over 17 years ago
Moved Parameters and AnyParameters class into separate file.
2e029f5d52806e9d987d218e84b1e75dffa92737 authored over 17 years ago
2e029f5d52806e9d987d218e84b1e75dffa92737 authored over 17 years ago
Extracted logic from Expectation#method_signature into Parameters#to_s and added AnyParameters class.
1f64d7b87c4a469b1788156389bb85647568b4e4 authored over 17 years ago
1f64d7b87c4a469b1788156389bb85647568b4e4 authored over 17 years ago
Removed seemingly unnecessary line which joined parameters with commas.
3b1ecf8a6b28a07dfe2cade4a15f6a4bd59dfcca authored over 17 years ago
3b1ecf8a6b28a07dfe2cade4a15f6a4bd59dfcca authored over 17 years ago
Extracted list of parameter matchers into a class.
d2f9cc1b8ca3b2412cd5b6e069e388198a734c50 authored over 17 years ago
d2f9cc1b8ca3b2412cd5b6e069e388198a734c50 authored over 17 years ago
Take my own medicine and use Array#length in preference to Array#size.
aad79415963c79a1ffc9ead405c71fe360467d17 authored over 17 years ago
aad79415963c79a1ffc9ead405c71fe360467d17 authored over 17 years ago
Extracted backtrace filtering into ExpectationError.
da975f14f878bc0304cce645ec7c43f4cd8aaaaa authored over 17 years ago
da975f14f878bc0304cce645ec7c43f4cd8aaaaa authored over 17 years ago
Fixed rdoc call-seq for Expectation#returns.
94176d6fc2a241ab1080b0906678f9738359daf1 authored over 17 years ago
94176d6fc2a241ab1080b0906678f9738359daf1 authored over 17 years ago
Added is_a parameter matcher. Fixed test name.
c0eddb1b2b3364dba5696a519f8eb31b6db705c7 authored over 17 years ago
c0eddb1b2b3364dba5696a519f8eb31b6db705c7 authored over 17 years ago
Updated todo list.
946bf1ea41a599f20aac81d30e439ccb6b7e6349 authored over 17 years ago
946bf1ea41a599f20aac81d30e439ccb6b7e6349 authored over 17 years ago
Renamed Matches parameter matcher to RegexpMatches for clarity. Added noframes tag to rdoc index to assist Google.
50d30e0e1280fecfbb3fd3fe58c4f7f86b223848 authored over 17 years ago
50d30e0e1280fecfbb3fd3fe58c4f7f86b223848 authored over 17 years ago
Testing whether a parameter matches a regular expression is a common activity.
c8c4ff6cd1f152d0e87933a7ac0096eb040405d0 authored over 17 years ago
c8c4ff6cd1f152d0e87933a7ac0096eb040405d0 authored over 17 years ago
Updated release notes and version number ready for release 0.5.3.
20f39f1572a424d9d9fdaa8a44230ad8c36b37a3 authored over 17 years ago
20f39f1572a424d9d9fdaa8a44230ad8c36b37a3 authored over 17 years ago
Put Google Webmaster meta tag in the right header i.e. the one for the index page.
f3e3c63891a985e160dc45266be952aa42862970 authored over 17 years ago
f3e3c63891a985e160dc45266be952aa42862970 authored over 17 years ago
Added Google Webmaster meta tag to rdoc template header.
bf7c872236be8abef0537bc21784be11dac3f37e authored over 17 years ago
bf7c872236be8abef0537bc21784be11dac3f37e authored over 17 years ago
Added instance_of and kind_of parameter matchers.
74bc46e47988628230d0c242061b8ce2441beb3b authored over 17 years ago
74bc46e47988628230d0c242061b8ce2441beb3b authored over 17 years ago
Removed unused ExpectationSequenceError exception.
ed0acbecc4ddc7ef396a726a9dc869bb4ecd4bc8 authored over 17 years ago
ed0acbecc4ddc7ef396a726a9dc869bb4ecd4bc8 authored over 17 years ago
Release 0.5.2. Update release notes.
175cbd25d4205f73b1daee9bd737be0b12789cd7 authored over 17 years ago
175cbd25d4205f73b1daee9bd737be0b12789cd7 authored over 17 years ago
Simplified AutoVerify code and tests.
512d273ba7ab228f7488f3e985e3cf08e9da2510 authored over 17 years ago
512d273ba7ab228f7488f3e985e3cf08e9da2510 authored over 17 years ago
No need to reference Mock using Mocha namespace.
9186c092e20e78f4b7f6d4ca8cc303867944a064 authored over 17 years ago
9186c092e20e78f4b7f6d4ca8cc303867944a064 authored over 17 years ago
Fix bug 11885 - "never doesn't work with stub_everything" submitted by Alexander Lang. In fixing this bug, also fixed undiscoverd bug where expected & actual invocation counts were being incorrectly reported which seems to have been introduced when fixes were added for invocation dispatch (see MockedMethodDispatchAcceptanceTest).
Previously when an expectation did not allow more invocations, it was treated as not matching. N...
438dbbe9b030f5f5ceaa0a10022e4bcca07b5866 authored over 17 years ago
Removed Exception#last functionality temporarily - it was muddying the waters.
06a93c7de8644dacb1a34045d559a72a9dc27e9f authored over 17 years ago
06a93c7de8644dacb1a34045d559a72a9dc27e9f authored over 17 years ago
Refactored Mock expectations into ExpectationList.
bc8319a4f0ee00dc959c1113a2d15861b4daf8e6 authored over 17 years ago
bc8319a4f0ee00dc959c1113a2d15861b4daf8e6 authored over 17 years ago
Gave un-named test a name.
cf3e99c527d2b17d8f51fe9d2942916f14dd4fab authored over 17 years ago
cf3e99c527d2b17d8f51fe9d2942916f14dd4fab authored over 17 years ago
Replace tabs with spaces.
1f0bd1d49c0440bee0d4671cae14c917409f1d3d authored over 17 years ago
1f0bd1d49c0440bee0d4671cae14c917409f1d3d authored over 17 years ago
No need to call super method_missing.
fdb170a0867a20d9268d1d8dee7c2599f041e697 authored over 17 years ago
fdb170a0867a20d9268d1d8dee7c2599f041e697 authored over 17 years ago
Wanted to be able to specify that a particular expectation is the last method call on a mock.
ec810bd80c6511473bea912419c8200e02aba2e8 authored over 17 years ago
ec810bd80c6511473bea912419c8200e02aba2e8 authored over 17 years ago
Updated version to 0.5.1.
2e30d50943043bb1dadf6b829525bc9e7e74db5a authored over 17 years ago
2e30d50943043bb1dadf6b829525bc9e7e74db5a authored over 17 years ago
Fix for [#11583] Mocha 0.5.0 throwing unexpected warnings. Also switched on ruby warning for all rake test tasks. Fixed majority of warnings, but some left to fix.
a6322f89f5858f6a913c88f9c8d6fe1377839c5d authored over 17 years ago
a6322f89f5858f6a913c88f9c8d6fe1377839c5d authored over 17 years ago
Added meta_project dependency for publish_packages rake task.
5f2c31398fa9cdb3c60381c0f70313798e50cc51 authored over 17 years ago
5f2c31398fa9cdb3c60381c0f70313798e50cc51 authored over 17 years ago
Fixed package rake task.
b7b54bf68dd71513f4d7bcebff3a1d896551771e authored over 17 years ago
b7b54bf68dd71513f4d7bcebff3a1d896551771e authored over 17 years ago
Fix load path for coderay.
140ff20d7972c5809488e81b507aaabf0d3d810b authored over 17 years ago
140ff20d7972c5809488e81b507aaabf0d3d810b authored over 17 years ago
Added coderay which was previously installed as a gem on my local machine.
cc73540ba214507cdc99f55cdad7cc8cff308ba3 authored over 17 years ago
cc73540ba214507cdc99f55cdad7cc8cff308ba3 authored over 17 years ago
Added vendor directory.
a2ed7a1f171ba97531214c7bb575146cf7446efd authored over 17 years ago
a2ed7a1f171ba97531214c7bb575146cf7446efd authored over 17 years ago
Update version to 0.5.0 in preparation for release.
d3fe1453e794aa4869fb16e507427184ded87032 authored over 17 years ago
d3fe1453e794aa4869fb16e507427184ded87032 authored over 17 years ago
Fixed old stubba example.
b1a4eb0e9c6061c51da2841850ea71ff3d23d922 authored over 17 years ago
b1a4eb0e9c6061c51da2841850ea71ff3d23d922 authored over 17 years ago
Added RDoc template which had only been on my local machine.
3dbf471ed80123a047689d3ebb004dfabab78d9c authored over 17 years ago
3dbf471ed80123a047689d3ebb004dfabab78d9c authored over 17 years ago
Deprecate passing an instance of Proc to Expectation#returns.
d07acb7dc2882d58753ee5793654712b98cada1d authored over 17 years ago
d07acb7dc2882d58753ee5793654712b98cada1d authored over 17 years ago
Fix so that it is possible for a stubbed method to raise an Interrupt exception without a message in Ruby 1.8.6
e6fcfb3cb3464a4f5dd4e6dce959a7947ee41fd7 authored over 17 years ago
e6fcfb3cb3464a4f5dd4e6dce959a7947ee41fd7 authored over 17 years ago
Added responds_like and quacks_like.
ef1388c5c2005519810623c9b28f0fb8f5be64c0 authored almost 18 years ago
ef1388c5c2005519810623c9b28f0fb8f5be64c0 authored almost 18 years ago
Removed unused InvalidExpectation.
858a0b76089c676950bf7fc4b174886dd756d552 authored almost 18 years ago
858a0b76089c676950bf7fc4b174886dd756d552 authored almost 18 years ago
Added rdoc for any_of and all_of parameters matchers.
328e040abc07969e3ea0793e85427326527da5dc authored almost 18 years ago
328e040abc07969e3ea0793e85427326527da5dc authored almost 18 years ago
Added any_of and all_of parameter matchers.
32cfe6a3f7a03825d15aa72d529bc966087e1c29 authored almost 18 years ago
32cfe6a3f7a03825d15aa72d529bc966087e1c29 authored almost 18 years ago
Formatting and rdoc changes.
8642557a2910630465c0291667ff9501714345b7 authored almost 18 years ago
8642557a2910630465c0291667ff9501714345b7 authored almost 18 years ago
Added 'includes' parameter matcher; matches based on response to :include?.
d472cf152adec3162fc811b5de2c6cfdf67bf257 authored almost 18 years ago
d472cf152adec3162fc811b5de2c6cfdf67bf257 authored almost 18 years ago
Added rdoc to 'anything'.
c528f161e0a784df21b6ebd5ff097d12a79a38ab authored almost 18 years ago
c528f161e0a784df21b6ebd5ff097d12a79a38ab authored almost 18 years ago
Added 'anything' parameter matcher.
7d8a3557d2767db98f63aec1326890cd247ed58d authored almost 18 years ago
7d8a3557d2767db98f63aec1326890cd247ed58d authored almost 18 years ago
Use mocha_inspect for Mock#inspect.
ef1794d9f915a27056b028d9e373925f82d2ad46 authored almost 18 years ago
ef1794d9f915a27056b028d9e373925f82d2ad46 authored almost 18 years ago
Added a few Hamcrest-style parameter matchers to be used within Expectation#with. Hopefully this will mean we can get rid of the nasty ¶meter_block for Expectation#with. Updated rdoc. Updated rakefile to pick up new test directory and new rdoc files.
032fe764beaef8e0935155b03fa3c24cb60d5294 authored almost 18 years ago
032fe764beaef8e0935155b03fa3c24cb60d5294 authored almost 18 years ago
Tweaked rdoc for Expectation#never.
f42f09e22a46185770f0de8f27481ca35bac91dc authored almost 18 years ago
f42f09e22a46185770f0de8f27481ca35bac91dc authored almost 18 years ago
Added bug to todo list.
52fa4c90a2f3cc3413f222b9623107be636fd76a authored almost 18 years ago
52fa4c90a2f3cc3413f222b9623107be636fd76a authored almost 18 years ago
Renamed YieldParameter related classes.
1b4ec9a48f44a7e2bd2776e21ba2d676a0ec0583 authored almost 18 years ago
1b4ec9a48f44a7e2bd2776e21ba2d676a0ec0583 authored almost 18 years ago
Added Expectation#multiple_yields to allow a mocked or stubbed method to yield multiple times for a single invocation.
5dae79f2fdb54cc442ba27446f879a6c11799b90 authored almost 18 years ago
5dae79f2fdb54cc442ba27446f879a6c11799b90 authored almost 18 years ago
Use implicit reference to class instead of explicit reference.
600a69f777f28e0d3738fc426e9bd31c76c63936 authored almost 18 years ago
600a69f777f28e0d3738fc426e9bd31c76c63936 authored almost 18 years ago
Allow multiple calls to yields on single expectation to allow yield parameters to be specified for consecutive invocations e.g. mock.stubs(:method).yields(1, 2, 3).then.yields(4, 5). Updated rdoc accordingly. Extracted logic into YieldParameters class.
b0ec5ea01faf8e69d22619b620e1e89a726d2365 authored almost 18 years ago
b0ec5ea01faf8e69d22619b620e1e89a726d2365 authored almost 18 years ago
Use implicit reference to class instead of explicit reference to improve maintainability.
0598f8d6f61244bdfc47abbd1c69cc751271b466 authored almost 18 years ago
0598f8d6f61244bdfc47abbd1c69cc751271b466 authored almost 18 years ago
Deleted line rendered unnecessary by previous commit.
5bc7788504acb7de6f7b6990986db77629a2a396 authored almost 18 years ago
5bc7788504acb7de6f7b6990986db77629a2a396 authored almost 18 years ago
Simplified instance variables for parameters to be yielded.
12dea536e93b5ed9dc89ae6fdad375e955575e0a authored almost 18 years ago
12dea536e93b5ed9dc89ae6fdad375e955575e0a authored almost 18 years ago
Updated rdoc on Expectation to reflect recent changes.
02e84d9de8e64bf589ef1aa7581aa06d6c5fa708 authored almost 18 years ago
02e84d9de8e64bf589ef1aa7581aa06d6c5fa708 authored almost 18 years ago
Refactored return value generation into new ReturnValues, SingleReturnValue and ExceptionRaiser classes. Allow multiple calls to Expectation#returns and Expectation#raises to build up sequence of responses to invocations on the mock. Extracted aliasing of Object#is_a? into a separate file so it could be required from two places. Added syntactic sugar method Expectation#then to allow more readable expectations e.g. mock.stubs(:method).returns(1, 2).then.raises(Exception).then.returns(4).
dd5454114be24eeb15d017d4777305feec197860 authored almost 18 years ago
dd5454114be24eeb15d017d4777305feec197860 authored almost 18 years ago
Updated todo list to reflect recent changes.
ce330348cfee5e08a430ad80d570c0051f90e587 authored almost 18 years ago
ce330348cfee5e08a430ad80d570c0051f90e587 authored almost 18 years ago
Stop matching expectations when maximum number of expected invocations is reached. c.f. JMock v1.
ff0c4763265540cc01933496ba4aa3efd5d5b544 authored almost 18 years ago
ff0c4763265540cc01933496ba4aa3efd5d5b544 authored almost 18 years ago
Separated stub and missing_expectation into different files. Ditto for associated tests.
838754654b8c240191b396735d211c11965d504c authored almost 18 years ago
838754654b8c240191b396735d211c11965d504c authored almost 18 years ago
Moved tests into correct test case.
622ab0ec202d8af7e756d1e56c8d1bf4c723e25b authored almost 18 years ago
622ab0ec202d8af7e756d1e56c8d1bf4c723e25b authored almost 18 years ago
Improved instance variable names in expectation.
08595daa99a2955588cf0497719e1f983a158e59 authored almost 18 years ago
08595daa99a2955588cf0497719e1f983a158e59 authored almost 18 years ago
Capture standard object methods before mocha adds any.
cd4be354d5ecf19a69c8f937c9fbf46138525b3e authored almost 18 years ago
cd4be354d5ecf19a69c8f937c9fbf46138525b3e authored almost 18 years ago
Added Expectation#once method to make interface less surprising.
5a4650a72a1a3d6eaf6ae09131019e8268e5329d authored almost 18 years ago
5a4650a72a1a3d6eaf6ae09131019e8268e5329d authored almost 18 years ago
Fixed integration & acceptance tests so they can find test_helper and run within TextMate.
7a26ef0c52687e53bcc95c6fb7b010f012be0494 authored almost 18 years ago
7a26ef0c52687e53bcc95c6fb7b010f012be0494 authored almost 18 years ago
Move acceptance tests into their own directory.
521040ad3d4642ace55333894e08c4b57c0d3279 authored almost 18 years ago
521040ad3d4642ace55333894e08c4b57c0d3279 authored almost 18 years ago
Move integration tests into their own directory.
cb192eb5156ee247b46715e7bb35abf987f2d2fe authored almost 18 years ago
cb192eb5156ee247b46715e7bb35abf987f2d2fe authored almost 18 years ago