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

Improved implementation of ExecutionPoint in order to get better test error messages when no backtrace is supplied or an empty backtrace is supplied.

80f0028b32eab545a90a36e572ebe4051969e003 authored almost 17 years ago
Give StubbingException a sensible backtrace at least for stubbing method unnecessarily.

44d3e4c2d2e948cd78b35d47c53b54d8d7cd7bde authored almost 17 years ago
Fixed a nasty bug relating to stubbing the same method twice on an active record association proxy. The association proxy was claiming not the be the same object as itself (using Object#equal?), so we use Object#object_id equality instead which seems to work.

7361a94a8a6595ad99f70c777d4f77c0370c72c3 authored almost 17 years ago
Renamed acceptance test classes to match their new filenames.

936e41dcb02970e13227a01b374b46c8189ec2b9 authored almost 17 years ago
Split some ruby 1.8 & 1.9 versions of the same test into two tests.

d78a141701772d2f7ef4747a142f74d5d8194563 authored almost 17 years ago
Split some ruby 1.8 & 1.9 versions of the same test into two tests.

84234ed508a4f434d997039f9db520ea86541a24 authored almost 17 years ago
Split some ruby 1.8 & 1.9 versions of the same test into two tests.

bf9574c5ef2637552194d2e892660d68d0dbb11b authored almost 17 years ago
Split some ruby 1.8 & 1.9 versions of the same test into two tests.

9246dcd33798560af63ae08df68ced3ae2e050a4 authored almost 17 years ago
Removed the word 'acceptance' from acceptance test names - they are all in the acceptance directory after all.

f6de34a1d5eb7ee058441735dccd91d6e75ffca9 authored almost 17 years ago
Added configurable warnings or errors when a method on a non-public method is stubbed.

d22c7d365f0a0a060a9eab61c3ea0dbc6ce96312 authored almost 17 years ago
Added configurable warnings or errors when a method on a non-existent method is stubbed. I'd have liked to make the default behaviour provide warnings, but ActiveRecord doesn't implement respond_to? correctly e.g for dynamic finders.

3d03dd6a5a006d8915954d11dd0dfbf4891dcf6a authored almost 17 years ago
Fix bug #18914 - Classes that override '==' are likely to experience mocking 'failures' (where the original method is called instead of the mocked method). Use #equal? instead of #== or #eql? on stubbee to determine whether ClassMethod instances are equivalent.

8130dcc7ea397edb94a1dca15d437be8347edca5 authored almost 17 years ago
Fix bug #18917 - any_of seems to be broken. Also fix similar but less significant bug with all_of.

8c2699ec836f47d2b904e2fe49ba8ef6882b354d authored almost 17 years ago
Ooops. Fix broken build.

a69de0cf788710a87ce29088e66e3c77f41e3fe8 authored almost 17 years ago
Added hyphens when listing unsatisfied expectations, satisfied expectations and states, so that the regular expression in TextMate's Ruby bundle run_script.rb doesn't mistake a Mocha error message for a stack trace line.

e7cc4c0de0d7bb9e90b8f59fc22f6c2006ae3fb1 authored almost 17 years ago
Nasty fix so that TestCaseAdaptor works consistently with earlier versions of Test::Unit as well as more recent versions.

60888d4fa16fc31084b4e4c8abf6c906b3cf09f7 authored almost 17 years ago
Added configurable warnings or errors when a method on a non-mock object is stubbed. This may be useful for hard-core mockists.

a5b75ec80880d8f55861d01d919eed2d2d7e1511 authored almost 17 years ago
Added configurable warnings or errors when a method is stubbed unnecessarily i.e. the stubbed method is not called during the test.

33e57c787f90c43b00fce540d4ab4989ae6f25ad authored almost 17 years ago
Fixed and uncommented tests accidentally left commented in revision 287.

a47955c77acc29021f631f0572c0f355a52420ae authored almost 17 years ago
Fake version of public_methods, protected_methods & private_methods should have a default parameter value to more accurately represent reality.

cf88d0d433604ffe91a1e663634bf3b74591401d authored almost 17 years ago
Fix bug #18336 - private methods not left properly unchanged after stubbing. And related bugs. Added much more extensive acceptance level testing around this area.

4ef262c42adb15e7f79eeb8f27ca5ea8aa772bea authored almost 17 years ago
Use acceptance test helper in stubba_acceptance_test.

31e70caf77e58a580014a4baca72c0fbf45f2e3c authored almost 17 years ago
Introduced acceptance test helper.

85a42be4a34e7f835f78f769a20c6c038bcd75b6 authored almost 17 years ago
Reverted revision 283 - seems like it breaks a bunch of tests with Rails association proxies and dynamically added attributes. Probably need to provide a fix in the Rails plugin...?

aadc651803903d173dd15d0f6d1fad088f2c003c authored almost 17 years ago
Fixed bug #18336 - private methods not left properly unchanged after stubbing. Note that test assertions have to take account of the fact that in Ruby 1.9 Object#private_methods, Object#protected_methods & Object#public_methods return an array of symbols instead of an array of strings as in Ruby 1.8.

29c2f4e6101d751961cb0ec28d4dac5f31620e03 authored almost 17 years ago
Make StubbaAcceptanceTests more self-contained.

66ffdde81bcb6c7642db11ef5dad263d86687b34 authored almost 17 years ago
Removed unused lines from Mockery#verify.

8d464309680264159a6067a774f3aec7d645c4cd authored almost 17 years ago
Make ExpectationRaiser deal with subclasses of Interrupt which seem to need a message supplied in the raise statement in Ruby 1.8.6 (but not 1.8.4 or 1.9). Not sure this is really Mocha's responsibility.

f0ba6f3910b68ced5feb328e837a3d3e74ac2d82 authored almost 17 years ago
Fix ruby 1.9 warning caused by test.

3c742469fed6393d568e463a63e471ab1ab64969 authored almost 17 years ago
Method had accidentally been duplicated.

1643d2c4089dc4f488da2675371d031cc1cb8f46 authored almost 17 years ago
ExpectationList#similar_expectations is no longer used.

1656976bfc0957d32f01d9b2f053b7b551b1b6d6 authored almost 17 years ago
Refactored duplication out of test by adding functionality to TestRunner.

fab6207d061ae1a567071e68c4f7c884b3528518 authored almost 17 years ago
Provide a user-friendly list of unsatisfied expectations, satisfied expectations and state machines when an unexpected invocation occurs. Inlined MissingExpectation into Mock. Added acceptance test for unexpected invocation scenario.

f1bbb85908c2035bb922045e8f6ac73b9517eab3 authored almost 17 years ago
Test was passing accidentally.

dfc74f08ea95650b850178e2247cd609fc436455 authored almost 17 years ago
Provide a user-friendly list of unsatisfied expectations, satisfied expectations and state machines when at least one expectation is not satisfied.

486e537729d732adbe25bf758636ba29d0309c64 authored almost 17 years ago
Store state machines in mockery so we can eventually display their state in any error message.

6323622f29e24a3fc73017cfc7209a15ef80a996 authored almost 17 years ago
Central#verify_all and #unique_mocks are no longer used - all mocks are now kept in the Mockery and verified from there.

789ee655a6beecce4fc62110c6fa442b5f19377c authored almost 17 years ago
Improved expectation error messages by moving method signature to after the expected and actual invocation counts. Also made unexpected invocation message more distinct.

118a403ccf745997fa60c7788e4edb1b8f7a5052 authored almost 17 years ago
Avoid ruby warnings for private accessor.

319e3d90918775473be7b79ac4792ed6f2efe8f5 authored almost 17 years ago
Simplified cardinality logic.

26720367dcfd50587d831ae75a717a067d0898e8 authored almost 17 years ago
Improved readability of cardinality description.

9004b3d9b2f96726a4f479e1b2c7c9539e0912fe authored almost 17 years ago
No need to call Standalone#mocha_setup from test_case_adapter. Leaving mocha_setup in place for the moment, because it is probably used by test_spec, rspec, et al.

2cf6b7dcc6dc5a5408fadccd379a5eb093a2091f authored almost 17 years ago
Move mock naming classes into separate file and inline mock class methods into mockery methods.

30d9be13d4d4fa146abaf068fa579b9c1a307c7d authored almost 17 years ago
Lazily instantiate stubba object in Mockery.

d7479349a1c3e49cd80f0604899f2c1bf6824829 authored almost 17 years ago
Comment out rcov task to fix cruise build - rcov not installed and not vendorized.

30d861a6e4b53134d41f53560d0fee381ec3fccd authored almost 17 years ago
Introduce Mockery#mocks accessor.

c9d1af0be41b2e142cbb67c11cfc88c836967a27 authored almost 17 years ago
Extract add_mock private method in Mockery.

1e6fa84ff8fb0efabfb548e58d606eebcd1593fd authored almost 17 years ago
Namespaced test rake tasks. Use strings consistently for rake task namesAdded rcov rake task.

961869515a6350ec948c7980d13acf7f3e7e0a99 authored almost 17 years ago
Replace $stubba global variable with instance variable inside Mockery. A Mockery instance is stored in a class instance variable to provide access.

abe3c8e33f2950b42dc63dd3caa74d1ee508dcf8 authored about 17 years ago
Fixed test case class name.

51a8633faa9125fa67cb1f53774f52223c1bf42f authored about 17 years ago
Removed some implementation-specific unit tests and ensured equivalent coverage is provided by existing or new black-box tests.

b2dc7c0739377bafb99d6d4cb77771862b6ad36e authored about 17 years ago
Added deprecation warning in stubba.rb which is no longer needed and will be removed.

c8399ab79dcaee291d27b15cd77b0d96f2fcb702 authored about 17 years ago
Attempt at fixing bug #17835 "Handle more exceptions". Updated TestCaseAdapter to match latest Test::Unit::TestCase.

badaf48025a62c7efa4c96dd9e0cfc14436b03f8 authored about 17 years ago
Tests were accidentally passing due to nested test cases.

1fbf16f92accb72c85786f593e38f1aefd877f83 authored about 17 years ago
Corrected mistake in object.rb - don't think it had any repercussions.

524eb406ca10c55b7b276305e834a5e7a5d028d2 authored about 17 years ago
Refactored AutoVerify and SetupAndTeardown into Standalone and new Mockery class.

44720624bce7171c2cce53ac5582e729ce0e3817 authored about 17 years ago
Acceptance test to check that stubs return correct return values.

fbd630468aeb539f26dc8bb0e39918a15d761396 authored about 17 years ago
Add acceptance test to check multiple expectations are verified.

3d1d938ae2887aae5e1a716899bc5bbad743d9c9 authored about 17 years ago
Improve acceptance test coverage prior to some refactoring.

bf1aae58109fc94f52ac810056d430730dfc263f authored about 17 years ago
No need to include TestCaseAdapter and Standalone into TestRunner's test case instance (requiring 'mocha' in acceptance tests will have achieved this anyway).

2dd4c0bc7b91a3a14809cffeabf18160ea5a8649 authored about 17 years ago
Tidied up rdoc for parameter matchers.

89911f87f287ee31f6906972da0069ac36dfd4fa authored about 17 years ago
Display sensible failure message for any_instance expectations e.g. "#<AnyInstance:Foo>.bar - expected calls: 1, actual calls: 0"

79a36a133f4d1f4d9035ba160e7c2ab3618dbd2b authored about 17 years ago
has_key, has_value, has_entry and has_entries parameter matchers should allow nested matchers.

bf2a504093f4efe88129966d428aca7889d0d1db authored about 17 years ago
No longer any need for separate Stub class derived from Expectation.

72399c847270e9d561802b688c4681813c31a663 authored about 17 years ago
Introduce assertion_counter parameter to make things all the nastiness more explicit as a first step to making things better...? If nothing else this illustrates that a lot of classes and modules are involved in counting assertions for Test::Unit.

ac8edcb90e9199495c992760c2d987a2da664d99 authored about 17 years ago
Further refinement of fix for bug #17412 - Failure messages always say 'Mock' even when receiver is another type.

cba84397bb844b1b03b91cdbc9a7f7cdd67d450a authored about 17 years ago
Fixes bug #17412 - Failure messages always say 'Mock' even when receiver is another type.

03f1c9a34de3e8bff481749912df71f7538023e8 authored about 17 years ago
This acceptance test seems to have got left lying around - looks like I forgot to svn add it at some point recently.

3bdc8ac1b9d3a96da2575370e6388b9e908c2ce8 authored about 17 years ago
Moved last integration test to acceptance tests and removed rake task to run integration tests.

ef4d0f3a03d5c079149d810b6ac5d796241dcfa0 authored about 17 years ago
Remaining integration test should use TestRunner module.

0345755a6dccaa5c2103458c173f717ff5e72de7 authored about 17 years ago
Renamed original acceptance tests to example tests.

070e5ad07f48bc4da6fa1cce5d25b78a0f0ae7e5 authored about 17 years ago
Moved another integration test to acceptance tests and use TestRunner module.

ce608485a9f193534de64ba33aada1aab99f7ba6 authored about 17 years ago
Renamed test file to avoid ambiguity and renamed test class to be consistent.

8f0078ae9ebdc92e645564b8f8f83614a15f12f8 authored about 17 years ago
Moved one integration test to acceptance test and used TestRunner module.

b106af0e3f8b50830f9486a3c6b1d6096ce88927 authored about 17 years ago
Supply positioning information to evals to improve any error messages. See http://ola-bini.blogspot.com/2008/01/ruby-antipattern-using-eval-without.html

4928db8cf47f4109bdc272e32c723a5d1064379c authored about 17 years ago
Added StateMacine#become to allow manual state changes.

71a06a6342cfda705cd74e50dbc544e9fe7c5a64 authored about 17 years ago
Tidied up rdoc.

dcaae684c2e5bf1474540d4d255ed9cd3de9dec5 authored about 17 years ago
Test case names were inconsistent, which, in one case, led to an overlapping test name.

c04fe339063e1d150e5cdac449c6ce0fe3eff36e authored about 17 years ago
It's often useful to be able to test how a parameter quacks, rather than whether it's actually a duck.

898589fc5100ca9a451b41a4066f93e36f32a794 authored about 17 years ago
Test depended on hash ordering, which is neither guaranteed nor predictable.

17174629741b4014c6d3e361ae7f98065f536084 authored about 17 years ago
Added yaml_equivalent matcher to list of available matchers.

2c3f48f119e2b41a501af29a18b8684d83914fcd authored about 17 years ago
Added yaml_equivalent matcher.

5073e579a646ba9015243f40c268ddd9e4407d5e authored about 17 years ago
Added stuff to todo list.

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

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

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

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

50c5f3c141a0f0a8f6a2e3ba02ec56043c3e9026 authored about 17 years ago
Generate rdoc for StateMachine class.

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

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

77c52c9c9711a28b38183aa6dcc524451f7fabe1 authored about 17 years ago
Added StateMachine#is_not method.

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

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

1222cc4fa8a1f4b14443a32c50fe832d4f5ce2f0 authored about 17 years ago
Improved rake task descriptions.

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

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

5e9d0f8c84e9a03d41b0f55d4ca4dac317bcc92d 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.

2ab7fc9a94e0a6221f6d438b7b1876785cf16e2d authored about 17 years ago
Spread case statement over multiple lines to improve readability.

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

98554973b85bd22019f864dd26a401c8c2dbc0c7 authored about 17 years ago
Be more explicit about changes for Ruby 1.9 compatibility.

71685d841ff0957fa37229dbc283dcc213a7b437 authored about 17 years ago