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

Test depended on hash ordering, which is neither guaranteed nor predictable.

2636e8c45c76c1289ae6f2596f5fc78ba794a7c8 authored about 17 years ago
Added yaml_equivalent matcher to list of available matchers.

b8e8e9a91759c95371219c145ac88b09ac3eb2f8 authored about 17 years ago
Added yaml_equivalent matcher.

5729f6e4b61ca239ff4950f397e4f2c4e1f5550c authored about 17 years ago
Added stuff to todo list.

b24a4f8e8d27dd8ea62327935d86d45be690febb authored about 17 years ago
Refactored infinite_range, Expectation#invocations_allowed? and Expectation#satisfied? functionality into Cardinality class.

ed3187aa105929f9453bf7dbc9741fd2363b2e9f authored about 17 years ago
Removed unused Object#verify method.

c4e720ff7893117de667deebc19d6bef1967a54d authored about 17 years ago
Added rdoc for Expectation#then, Expectation#when and Expectation#in_sequence.

0c11aac9d08d64af28d9ec747351e51f1b4cf53f authored about 17 years ago
Added rdoc for AutoVerify#sequence and AutoVerify#states. Improved rdoc for other AutoVerify mehods.

48df8a1d9c0e8590e3d2ed9fb0121d514720b64e authored about 17 years ago
Generate rdoc for StateMachine class.

b509aaecc7af1a51515652dc8f116c8fdc7553e3 authored about 17 years ago
Don't generate rdoc for Object#to_matcher.

d68dea1541469712fe3f87c3a11e1cf6fd4c35a4 authored about 17 years ago
Added rdoc for optionally parameter matcher.

35c5c32d0c198ab5acd0fa35f3e2b7d664acffa1 authored about 17 years ago
Added StateMachine#is_not method.

50bd3943b06a663fb02ceb72989c296f5feccf63 authored about 17 years ago
Removed redundant local variable from test.

342f8975b06c851890776516e3e5ed0191a3926b authored about 17 years ago
Added JMock-style states for constraining the order of invocations. No rdoc yet.

f2dcb6ca12f9108be453ff8ab743ff8149189ba1 authored about 17 years ago
Improved rake task descriptions.

438491b7400cd545f164d1e5d766533d28bf98e0 authored about 17 years ago
Oops. Should have renamed dependency for default task too.

e2bb49013afad10c60ddb774b652cc9ef6004f83 authored about 17 years ago
Renamed test_all rake task to test so that it gets picked up by FireBrigade/Tinderbox.

789566c9fc81b1627391ff576bd326e84a59bec3 authored about 17 years ago
Emergency release 0.5.6 to fix compatibility with Ruby 1.9. Added gem spec dependency on Rake after seeing FireBrigade sandbox build errors.

61e340252c2044e8daab9442315713c37ebc4808 authored about 17 years ago
Spread case statement over multiple lines to improve readability.

0dc398568b97b733d73013c8b57e47979e4d3fe3 authored about 17 years ago
Be more explicit about changes for Ruby 1.9 compatibility.

2e5b63b2bbfb9f534c632cc158faa824894216b3 authored about 17 years ago
Be more explicit about changes for Ruby 1.9 compatibility.

39b8709c7b001b236f9e4c346f298a5e758938d9 authored about 17 years ago
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.

0cc4ee2d287133849a55af10e52da46f8f6a6f4d authored about 17 years ago
Compatibility with Ruby v1.9. All test errors and warnings fixed.

68fdd2c4e8874de6e4d9fe4d9a22d39cec452555 authored about 17 years ago
Initial support for sequences for constraining order of expected invocations.

16333a1f6844df1d6568e6e0cb8bf9b8c6d5fc8b authored about 17 years ago
Added partial_mocks_acceptance_test to improve coverage.

3e1944526906fe14d161f5e509c1e8b11e145e1a authored about 17 years ago
Make the acceptance test test_runner display as much information as possible when a test fails unexpectedly.

d7a36562b2bc9f0b5ce41383fbd8adf8c0d46cc7 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.

1fc4368fd34dbbcfd19128915c9f146462a9220c authored about 17 years ago
Refactored method_signature into method_matcher and parameters_matcher.

8359f1a0be049d25d6fe0bf2f4945e61ee710fa7 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).

9b1f07074c9568f104944fa360e73d941a9c6233 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.

cc89acb82ab4189210938ff4f67e221c9d80e722 authored about 17 years ago
Moved abbreviated examples into test case to avoid the confusion in bug report #15977

e8556f27517eaff39d645720087a5a7d595ed48b authored about 17 years ago
Added useful links.

9584b0f18006b8dae05b0f8f8dd3e03c56ba1196 authored about 17 years ago
Fixed bug in not parameter matcher.

a05604d47d78303e463af40e11515cd4120e4a83 authored about 17 years ago
Fixed bug in any_of and all_of parameter matchers.

d9192b0cd36b3186d1d05437fb8572124dd58e2b 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.

617fe97bb2d26ca5c216b5e148c34f71d76acbaa 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.

4813085b6077e8d1721239beb041564548664098 authored about 17 years ago
Refactored implementation of stub_everything.

e76dfa37e4859820ff1a28ec1f1ff152ce20682b authored about 17 years ago
Added 'Not' parameter matcher. Had to use capitalized 'Not' because 'not' is a ruby keyword.

f01ac45db81909087b0e6e4e1326d128029d8226 authored about 17 years ago
Attempt to fix brittle test so it works on slicehost machine.

5b7e7ba60fdcbb77a6442b6558fcf09e02605684 authored over 17 years ago
Added unit test for MethodSignature#similar_method_signatures.

c2640ede346f5dbbe3a0d79f7bc447d044aa8d15 authored over 17 years ago
Added unit tests for MethodSignature#match?

cd9b53183d97b806551aa800fb8bbb6b7a34e32d authored over 17 years ago
Simplified logic in MissingExpectation.

1b7191bb44104a0f93b178072642667cb019ea26 authored over 17 years ago
Moved @mock instance variable from Expectation into MethodSignature.

a59ac244ed4cfaf9cf2e598af705b0617ede6d70 authored over 17 years ago
Moved method_name into Parameter class and renamed class MethodSignature.

8b2617852b318b834874286fc51f18cdde26b251 authored over 17 years ago
Combine AnyParameters into Parameters.

c2500d253b1e47fbf27fd63e2d3cd3d24c9eef44 authored over 17 years ago
Simplify logic in Parameters#match?

b80418a811aa42843f92b33782cd265dd83cb577 authored over 17 years ago
Rearranged order of member variable assignments in Expectation#initialize.

0b9ce383c9fe555452303a92c1127fb48ed408d5 authored over 17 years ago
Simplify Expectation#match logic.

1be287690291e76575036d46cf3542c109ffd0a1 authored over 17 years ago
Refactored parameter matching by block into Parameters class. Renamed Parameters#== to Parameters#match?

7b27e35f5590c705cc63e563cc4c4089d7916d95 authored over 17 years ago
Removed defunct @final_expectation member variable from Expectation.

e1a647989406a8f5ca0deffff558dc4ecc5e522f authored over 17 years ago
Removed remaining ruby warnings from tests.

8980c35825c8656a0442f43f780d4d1b728f4f96 authored over 17 years ago
Moved PrettyParameter logic into Parameters class.

dbad40f2368bd102f4cb4c8a12f28ef93d8afd40 authored over 17 years ago
Moved Parameters and AnyParameters class into separate file.

9d65afa6f37487ec4d3bf5c18dd62b0286e973e5 authored over 17 years ago
Extracted logic from Expectation#method_signature into Parameters#to_s and added AnyParameters class.

511d5c23ea2014cba81109b5f9992702b3aa4849 authored over 17 years ago
Removed seemingly unnecessary line which joined parameters with commas.

d4a5a6908bf444116ec8eed9cc4bd7f6b6aa3eb9 authored over 17 years ago
Extracted list of parameter matchers into a class.

9891d91e67c5bfb1c5298d8a08306e846a725bd5 authored over 17 years ago
Take my own medicine and use Array#length in preference to Array#size.

bbd221e0e72311de95f6827ad484eb5f6c4fccf0 authored over 17 years ago
Extracted backtrace filtering into ExpectationError.

f4fed6c68c00219660d89bccb36feb99c74d1d6f authored over 17 years ago
Fixed rdoc call-seq for Expectation#returns.

6c287d0d47b6ed2c1ddb556e0440e0122ccfcbb2 authored over 17 years ago
Added is_a parameter matcher. Fixed test name.

f27a23777eb3139181968ce89824a54e3b8440d0 authored over 17 years ago
Updated todo list.

bb195f8ffe7089ceabcbbdcbca474ea3108ccef5 authored over 17 years ago
Renamed Matches parameter matcher to RegexpMatches for clarity. Added noframes tag to rdoc index to assist Google.

d6a0f261b7db711daac7c7c09b85f43a6f38ad9c authored over 17 years ago
Testing whether a parameter matches a regular expression is a common activity.

45d2ba700e03e877ba187f3063c01deee7e3d13d authored over 17 years ago
Updated release notes and version number ready for release 0.5.3.

bc1013c64e9436709486e4189ee7fea6fd32fb5d authored over 17 years ago
Put Google Webmaster meta tag in the right header i.e. the one for the index page.

70edf6a3576ddf6abbb9d8c5df64cf741651d131 authored over 17 years ago
Added Google Webmaster meta tag to rdoc template header.

512557cddeafb875c2ebf0d285aae80959ef6c7f authored over 17 years ago
Added instance_of and kind_of parameter matchers.

a60b25db01b2f8af0659a0a65636de2ffb3e357b authored over 17 years ago
Removed unused ExpectationSequenceError exception.

8f349face3919a148750f6eb526c1c252fa89ca1 authored over 17 years ago
Release 0.5.2. Update release notes.

e3cb50a137fb8bea7c425c67a9da69f9edcfe4de authored over 17 years ago
Simplified AutoVerify code and tests.

9f7fa125016049212ad9fcf9fab4902c73d74b99 authored over 17 years ago
No need to reference Mock using Mocha namespace.

ae74457dd0477405f68969eebc17a4ad0a82306c 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...

d3583772c3fd878a567a0b04750d98ff7d079358 authored over 17 years ago
Removed Exception#last functionality temporarily - it was muddying the waters.

b4e847fb00720601e8caf21774d37df95478284b authored over 17 years ago
Refactored Mock expectations into ExpectationList.

5f656a91c7d9443bb456b24ac0bf17745c99f835 authored over 17 years ago
Gave un-named test a name.

f7e2aa0377d5788098e20e80962d8f0dfaccf292 authored over 17 years ago
Replace tabs with spaces.

d39ad5f5be07683302bdb250cf4c22a9ff63566a authored over 17 years ago
No need to call super method_missing.

ac63d31c967984bc08526794b44f5b986ea8e691 authored over 17 years ago
Wanted to be able to specify that a particular expectation is the last method call on a mock.

1ca2addc301edaf74f0378cd09d26b78dfb5d7fb authored over 17 years ago
Updated version to 0.5.1.

320947b8fe098fac3a08d722114b03d9855f9d69 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.

db4fb12458141bba3c178776f65c20d15bbd511a authored over 17 years ago
Added meta_project dependency for publish_packages rake task.

4b08bc206f1b0d6a7770e3a2c552301525795ee2 authored over 17 years ago
Fixed package rake task.

89a5959db264ae8143030e7461b66b6e1879043e authored over 17 years ago
Fix load path for coderay.

93144e0c9a56539fcbb1802d9dd0f75a0759ec45 authored over 17 years ago
Added coderay which was previously installed as a gem on my local machine.

a916683c0856151fb6bd3a032ef6929c7efd4164 authored over 17 years ago
Added vendor directory.

836cb593c0a7f908b7e2a8c3193b24b16327a35d authored over 17 years ago
Update version to 0.5.0 in preparation for release.

139dabb13453350f679f175a5700c207d50ccbb3 authored over 17 years ago
Fixed old stubba example.

98cbde3c4ef9c100a73ce4caefd2f8b8630a5875 authored over 17 years ago
Added RDoc template which had only been on my local machine.

9cd0e8d417b21a8040720e6ae11acfe41281cbc9 authored over 17 years ago
Deprecate passing an instance of Proc to Expectation#returns.

d057c7c90e60b1e2ade4f124e14be425a0989e98 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

37ab50a707e20ad24fe407cbef3395d287d58030 authored over 17 years ago
Added responds_like and quacks_like.

440fb75bba12f0afa8a0995d01f336e27b54036e authored over 17 years ago
Removed unused InvalidExpectation.

8ebbbac84c7d278a91f3dd685aa94d2e880b633d authored over 17 years ago
Added rdoc for any_of and all_of parameters matchers.

ce37d7d884ea010884078a43acba2ab0b029cd90 authored over 17 years ago
Added any_of and all_of parameter matchers.

c58b1dcf9b0d48572a674e8e675bd5b4bb66a2da authored over 17 years ago
Formatting and rdoc changes.

8742e7d226fcccab14eb26c7f0a7e823125b4f2b authored over 17 years ago
Added 'includes' parameter matcher; matches based on response to :include?.

f4a5dfc362e134b4b7183c7a51f8adb2325bad58 authored over 17 years ago
Added rdoc to 'anything'.

56a1fb142c0d6ac45b90b727bc4b1b5bac7d4953 authored over 17 years ago
Added 'anything' parameter matcher.

f8adb9874799c6b13a587c94340796e6c33be5cd authored over 17 years ago
Use mocha_inspect for Mock#inspect.

a412da02655c214a0c5d6cb1fae44bc7a1ab1536 authored over 17 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 &parameter_block for Expectation#with. Updated rdoc. Updated rakefile to pick up new test directory and new rdoc files.

4e67ab77be4c7bd1496ff89b45d07cc02d5cdf34 authored almost 18 years ago