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
Renamed test/mocha to test/unit.
193e0b79669e3605a6bcbc246d29719eda328304 authored almost 18 years ago
193e0b79669e3605a6bcbc246d29719eda328304 authored almost 18 years ago
Use Rake::TestTask to run tests. Created three separate tasks to run unit, integration & acceptance tests. Split inspect_test into one file per TestCase. Deleted superfluous all_tests file.
00d792fd0a1a821e74add1ee20679103662a26fb authored almost 18 years ago
00d792fd0a1a821e74add1ee20679103662a26fb authored almost 18 years ago
Fiddled with mocha_inspect and tests to give more sensible results on x86 platform.
0a1e9a97489ee2359c9ccb619f8c3e586ec7fec5 authored almost 18 years ago
0a1e9a97489ee2359c9ccb619f8c3e586ec7fec5 authored almost 18 years ago
Small improvements to RDoc.
652d1e412f1910cc2e9e38615bd654adfea80b64 authored almost 18 years ago
652d1e412f1910cc2e9e38615bd654adfea80b64 authored almost 18 years ago
Amalgamate MockMethods module into Mock class as it is no longer used anywhere else. Small improvements to RDoc.
2d373c8ce1bdc15df2b214f66d7a09ee694b2683 authored almost 18 years ago
2d373c8ce1bdc15df2b214f66d7a09ee694b2683 authored almost 18 years ago
Removed todo item that was completed in previous revision.
abca0050c1ce00f8ecde5f34f43ee996382c3060 authored almost 18 years ago
abca0050c1ce00f8ecde5f34f43ee996382c3060 authored almost 18 years ago
Removed unnecessary require for rails plugin. Not needed with more recent integration with test/unit.
4e1149bedaa3bd3ef0122259bc046c5bc0d73be5 authored almost 18 years ago
4e1149bedaa3bd3ef0122259bc046c5bc0d73be5 authored almost 18 years ago
Fixed bug [#7834] infinte_range.rb makes incorrect assumption about to_f logged by James Moore.
e1b342c64ae78d4cd20637a75de60e8d52ab3c8c authored about 18 years ago
e1b342c64ae78d4cd20637a75de60e8d52ab3c8c authored about 18 years ago
Expectation should match if method name matches and either parameters match or with block returns true.
d999d7b1814396a5c6c3963124b685f5f2b65877 authored about 18 years ago
d999d7b1814396a5c6c3963124b685f5f2b65877 authored about 18 years ago
Add todo item
ea598f15aa7eab05b3aecbeac9fd15aa2573cfc0 authored about 18 years ago
ea598f15aa7eab05b3aecbeac9fd15aa2573cfc0 authored about 18 years ago
Added todo.
08545c4a2ef59318b061db5865b697318ea85aff authored about 18 years ago
08545c4a2ef59318b061db5865b697318ea85aff authored about 18 years ago
Updated RELEASE for 0.4.0. Tweaked TODO.
470df96f92f2f575da988a2afd14ba5ae2a0aede authored about 18 years ago
470df96f92f2f575da988a2afd14ba5ae2a0aede authored about 18 years ago
More todos.
f3ba9aa1599d1e534168c93ea232453b20a78766 authored about 18 years ago
f3ba9aa1599d1e534168c93ea232453b20a78766 authored about 18 years ago
Update version to 0.4.0. Tweaks to todos.
b670fa6caaba2579f43138dbccd8388d18977ca3 authored about 18 years ago
b670fa6caaba2579f43138dbccd8388d18977ca3 authored about 18 years ago
Updated README in preparation for release 0.4.0.
a07383233e19925674438a9ee00ea96f457957fd authored about 18 years ago
a07383233e19925674438a9ee00ea96f457957fd authored about 18 years ago
Sifted todos and organised them into groups.
ba33d80fcffd2768fab030531f4b2082ff037bcc authored about 18 years ago
ba33d80fcffd2768fab030531f4b2082ff037bcc authored about 18 years ago
Deleted redundant test in stubba_acceptance_test. Now tested by better tests in stubba_integration_test.
c80fa438a4abbaa4329ff498258d2c989a89752c authored about 18 years ago
c80fa438a4abbaa4329ff498258d2c989a89752c authored about 18 years ago
Removed unused empty test file.
57979d335ccf851dadbcf5049d11c720017d9065 authored about 18 years ago
57979d335ccf851dadbcf5049d11c720017d9065 authored about 18 years ago
Added tests to check that instance methods on partial mocks are restored to original implementation in case a partial mock instance is used in multiple test methods (see emails from Kevin Clark regarding tests on Rails routing code - http://rubyforge.org/pipermail/mocha-developer/2007-January/000177.html).
9f7fa5e675714a7b91861856fb3d27a7b461cd97 authored about 18 years ago
9f7fa5e675714a7b91861856fb3d27a7b461cd97 authored about 18 years ago
Allow mocking and stubbing of methods defined on Object including 'expects' and 'stubs'.
cf0425397c8ea5e564469dacee9ca756726849f8 authored about 18 years ago
cf0425397c8ea5e564469dacee9ca756726849f8 authored about 18 years ago
Added todo items.
077990976affc91b0f4a7bb4e28ecb03f24475da authored about 18 years ago
077990976affc91b0f4a7bb4e28ecb03f24475da authored about 18 years ago
Define and use Object#__is_a__ instead of Object#is_a? so that it can be mocked.
57b2cbf4f1d19d4451cd11f376dbfe1bb8d29200 authored about 18 years ago
57b2cbf4f1d19d4451cd11f376dbfe1bb8d29200 authored about 18 years ago
Find unique_mocks from stubba_methods using Mock#__id__ and not Mock#id, Mock#object_id or Mock#hash, etc.
140c31364cb092d98b8dc2a667997a5773cdf64d authored about 18 years ago
140c31364cb092d98b8dc2a667997a5773cdf64d authored about 18 years ago
Add metaclass_test to all_tests and make asserts more robust.
dd3acafdb98edbcb598a20741064c39d34638129 authored about 18 years ago
dd3acafdb98edbcb598a20741064c39d34638129 authored about 18 years ago
Added test for Object#metaclass.
1e752ce2efd0cb11c7d3ba012ceef57da5a8c70c authored about 18 years ago
1e752ce2efd0cb11c7d3ba012ceef57da5a8c70c authored about 18 years ago
Tidied up Mock class. Don't delegate to Object#mocha_inspect for Mock#mocha_inspect so that we don't run into problems when mocking #inspect method. Remove __mock_name accessor which was only needed for testing.
02a8eee3de40c8eb50e854c88971f59c05f33e81 authored about 18 years ago
02a8eee3de40c8eb50e854c88971f59c05f33e81 authored about 18 years ago
Use Object#__send__ instead of Object#send so that Object#send can be mocked.
33a79095c392c4e1a665fe4ce28635d577206d9c authored about 18 years ago
33a79095c392c4e1a665fe4ce28635d577206d9c authored about 18 years ago
Use Object#__id__ instead of Object#object_id or Object#id for inspecting objects, so that these methods can be stubbed.
69b173dd38be57af2b8527d93ca3a3080e6f4968 authored about 18 years ago
69b173dd38be57af2b8527d93ca3a3080e6f4968 authored about 18 years ago
Fixed rdoc for MockMethods#stubs.
99ba97057a77133f15106a297dacd80450b6c648 authored about 18 years ago
99ba97057a77133f15106a297dacd80450b6c648 authored about 18 years ago
Renamed Object#metaclass to Object#__metaclass__ to keep it out of the way.
b357e9a1e808df7557f9b7905678b60994c83596 authored about 18 years ago
b357e9a1e808df7557f9b7905678b60994c83596 authored about 18 years ago
Patch from Tobias Lutke to reverse order in which expectations are matched, so that last expectation is matched first. This allows e.g. a call to stubs() to be effectively overridden by a call to expects(). c.f. JMock.
6cf4a82c9f34fc006de94b62823572f4b81feb4a authored about 18 years ago
6cf4a82c9f34fc006de94b62823572f4b81feb4a authored about 18 years ago
Fix path to lib/mocha/object.rb in rdoc generation rake task - thanks to Tomas Pospisek for patch.
afde2c01fa648a6658b15770c2bdbb05e1282189 authored about 18 years ago
afde2c01fa648a6658b15770c2bdbb05e1282189 authored about 18 years ago
Changed Rakefile to include examples dir in packages.
c1d9d55dca17052b1ebeb290d07a1bf8ef548c93 authored about 18 years ago
c1d9d55dca17052b1ebeb290d07a1bf8ef548c93 authored about 18 years ago
Object#mocha_inspect now shows object ID in hex to imitate Ruby's own inspect.
4a8452e93b015e63fc863aa82f20641a320e661a authored about 18 years ago
4a8452e93b015e63fc863aa82f20641a320e661a authored about 18 years ago
Raise the same object passed to Expectation#raises if we omit the optional message
e79115c20a7be425f2404351a84769f210f89576 authored over 18 years ago
e79115c20a7be425f2404351a84769f210f89576 authored over 18 years ago
Fixed bug where mocha/standalone was being required by mocha instead of mocha_standalone. This caused mocha/object not to be loaded among other things which meant methods like expects() and stubs() on objects stopped working.
9d7a8241dc51c6c5a836f3379b0febed545b5c21 authored over 18 years ago
9d7a8241dc51c6c5a836f3379b0febed545b5c21 authored over 18 years ago
Removed last references to test unit code.
0f8b00d956162d0df108930cbff9fa6594804462 authored over 18 years ago
0f8b00d956162d0df108930cbff9fa6594804462 authored over 18 years ago
Replaced backtrace filtering to remove another dependency on test unit.
a6da7ed00326d988128746231f725854b47316ef authored over 18 years ago
a6da7ed00326d988128746231f725854b47316ef authored over 18 years ago
Mostly isolated mocha code from test unit code.
e96283c7e37369f8566469db306abc8d94852cfd authored over 18 years ago
e96283c7e37369f8566469db306abc8d94852cfd authored over 18 years ago
SmartTestCase module amalgamated with Mocha module.
f3d8382f238b7244e94bc617caf60e01789ad8ac authored over 18 years ago
f3d8382f238b7244e94bc617caf60e01789ad8ac authored over 18 years ago
Stubba module amalgamated with Mocha module.
a528d41082fcfc4007bbfca1f6420bad252e8353 authored over 18 years ago
a528d41082fcfc4007bbfca1f6420bad252e8353 authored over 18 years ago
Substitute all non-word characters in method names when generating hidden method name.
969eaf621790f961af8ff2d7f75bcdf83587b044 authored over 18 years ago
969eaf621790f961af8ff2d7f75bcdf83587b044 authored over 18 years ago
Moved all classes into mocha directory.
220d13a0527c7789d9d907311bbc76f41ca9e523 authored over 18 years ago
220d13a0527c7789d9d907311bbc76f41ca9e523 authored over 18 years ago
Bugfix: attempting to stub a method with = in its name would cause a parse error.
caf83052575e949b2ae5cf5c6da56d3aebdeb350 authored over 18 years ago
caf83052575e949b2ae5cf5c6da56d3aebdeb350 authored over 18 years ago
revert silly stuff with stub_everything
4b31bb437ddf2e67058ca6e170f229ea624e1fcd authored over 18 years ago
4b31bb437ddf2e67058ca6e170f229ea624e1fcd authored over 18 years ago
stub_everything now returns stub_everythings.
8b396bff978cf48eeae111741351329313cd2fc7 authored over 18 years ago
8b396bff978cf48eeae111741351329313cd2fc7 authored over 18 years ago
Patch to InstanceMethod from Chris Roos - fixes problem when stubbafied object hangs around between tests.
7243095b149f72a8e307e4784af29f5713711ae1 authored over 18 years ago
7243095b149f72a8e307e4784af29f5713711ae1 authored over 18 years ago
Patch from Xavier Shay to eliminate warning: instance variable @yield not initialized.
6e91a919cfa7fd95287446f0aba9b7d22125529d authored over 18 years ago
6e91a919cfa7fd95287446f0aba9b7d22125529d authored over 18 years ago
Quick fix for blank mock problems.
2b9c3b7c008f6ec80974352e528f57d265f309cf authored over 18 years ago
2b9c3b7c008f6ec80974352e528f57d265f309cf authored over 18 years ago
Keep a couple more object methods in mock to ensure revieworld tests pass - needs more investigation.
b7ef169eac40e1a07ba898113fbbda4c1ca380de authored over 18 years ago
b7ef169eac40e1a07ba898113fbbda4c1ca380de authored over 18 years ago
named mocks for unfulfilled expectations as well as unexpected calls
improved consistency of expectation error messages
allow multiple return values on consecutive ca...
Namespace as much as possible.
70747f9f7c7da7cacac278281523ee1ce5039637 authored over 18 years ago
70747f9f7c7da7cacac278281523ee1ce5039637 authored over 18 years ago
Added publish_packages rake task.
18fad2183b033625daefe2c1796170788eb844c0 authored over 18 years ago
18fad2183b033625daefe2c1796170788eb844c0 authored over 18 years ago
Improved RDoc for AutoVerify.
f72e77649cdc588a40d8d41de572e45dd50fd599 authored over 18 years ago
f72e77649cdc588a40d8d41de572e45dd50fd599 authored over 18 years ago
Remove last traces of auto_mocha.
a79e8b210f1ae29e3f6c78346a4418441f27d939 authored over 18 years ago
a79e8b210f1ae29e3f6c78346a4418441f27d939 authored over 18 years ago
Removed auto_mocha.
46665e5519d051c223d23688b4f40cc301647fd0 authored over 18 years ago
46665e5519d051c223d23688b4f40cc301647fd0 authored over 18 years ago
Fixed link to floehopper.
c769dca2ce136edbbbf84d9cab1952b17ca31b2c authored over 18 years ago
c769dca2ce136edbbbf84d9cab1952b17ca31b2c authored over 18 years ago
Named mocks patch from Chris.
a75b325672455f844df26f93749c19b228961fdf authored over 18 years ago
a75b325672455f844df26f93749c19b228961fdf authored over 18 years ago
Added todo item.
80d4b522156888d35214b6b77a2af7528917c8b3 authored over 18 years ago
80d4b522156888d35214b6b77a2af7528917c8b3 authored over 18 years ago
Added missing files - MIT license and examples.
1f813ca797b2e7d50dfd228bec5794d363ef8ecf authored over 18 years ago
1f813ca797b2e7d50dfd228bec5794d363ef8ecf authored over 18 years ago
Major overhaul of rdocs - only include public API. Added examples - syntax highlighting by coderay. Namespaced auto_verify.
484f228937d5b82dc7025df380e82dc7dfb4a486 authored over 18 years ago
484f228937d5b82dc7025df380e82dc7dfb4a486 authored over 18 years ago
licensing changes - release 0.3.1
f359c1ebbed24644f76be14d5a27ff97e3a61ed0 authored over 18 years ago
f359c1ebbed24644f76be14d5a27ff97e3a61ed0 authored over 18 years ago
Released 0.3.0
9ca86fc962fae8a602ab9637e530f0b6947fcc43 authored over 18 years ago
9ca86fc962fae8a602ab9637e530f0b6947fcc43 authored over 18 years ago
Auto-verify stub_everything instances. Allow specific stubs to be defined in stub_everything.
e6c184c45d274abe98a1baa21ab86a424c46f667 authored over 18 years ago
e6c184c45d274abe98a1baa21ab86a424c46f667 authored over 18 years ago
Added stub_everything functionality. Only yield from stub if 'yields' is called for expectation, not just because block_given.
3c7a62353b376c78389e39b41c373861044eb372 authored over 18 years ago
3c7a62353b376c78389e39b41c373861044eb372 authored over 18 years ago
Ensure all teardowns are called even if exception raised in one teardown. Stubba verification failures have backtrace indicating line number where expects was called.
abc30267297605e1d3c38d5644173d09d586b0ba authored over 18 years ago
abc30267297605e1d3c38d5644173d09d586b0ba authored over 18 years ago
Rename @object instance variable in class_method, etc to be stubbee.
69499cf25aada863f8f0f4e535d73f2b66dcf0e0 authored over 18 years ago
69499cf25aada863f8f0f4e535d73f2b66dcf0e0 authored over 18 years ago
Remove calls to verify in stubba_acceptance_test.
7f1f2cf3ad5b8755580363cb417d1e2d54f7ff25 authored over 18 years ago
7f1f2cf3ad5b8755580363cb417d1e2d54f7ff25 authored over 18 years ago
Auto-verify for Stubba. Include Stubba expectation verifications in test_result assertion count.
115ae8d5a7877e73c23ae92a62d14f9a19fd5d8e authored over 18 years ago
115ae8d5a7877e73c23ae92a62d14f9a19fd5d8e authored over 18 years ago
Mocks should respond_to expected methods. Removed unnecessary code in mock.
d63a1192c181514930c6ee30a66cd31ca6521b29 authored over 18 years ago
d63a1192c181514930c6ee30a66cd31ca6521b29 authored over 18 years ago
Added yields method for expectation.
57456f0e195bdf75b716139d782faa7ea015d421 authored over 18 years ago
57456f0e195bdf75b716139d782faa7ea015d421 authored over 18 years ago
Include expectation verifications in assertion count in test result. Filter out mocha classes from stacktraces. Set backtrace on expectation verification error to point to line where expectation was created.
3832575bf87aef1b97ff514eed02423e6f8c9cc0 authored over 18 years ago
3832575bf87aef1b97ff514eed02423e6f8c9cc0 authored over 18 years ago
Fix requires for rails plugin.
e19fe0b097083e03dc9ce7b5db204eff7c12abd0 authored over 18 years ago
e19fe0b097083e03dc9ce7b5db204eff7c12abd0 authored over 18 years ago
Added init.rb in attempt to make rails plugin.
d733c3bb63cf8f0daa7b1e3dc855234f8ebb1aa2 authored over 18 years ago
d733c3bb63cf8f0daa7b1e3dc855234f8ebb1aa2 authored over 18 years ago
More todos
b4f34fefe59752e7ef0809b36c2c621448e920d9 authored over 18 years ago
b4f34fefe59752e7ef0809b36c2c621448e920d9 authored over 18 years ago
More todos
21e14a0f2ef05e105e4ec144b01f291513e8e7f7 authored over 18 years ago
21e14a0f2ef05e105e4ec144b01f291513e8e7f7 authored over 18 years ago
Release 0.2.1
250c13ad468f00c14b0a9d4cd8020543ec6e9386 authored over 18 years ago
250c13ad468f00c14b0a9d4cd8020543ec6e9386 authored over 18 years ago
Renamed MochaAcceptanceTest::Rover#move method to avoid conflict with Rake.
2afc0f65d134fddf50b978b403652a5198f2102a authored over 18 years ago
2afc0f65d134fddf50b978b403652a5198f2102a authored over 18 years ago
Tweaks so that I can release 0.2.0
8cf6f49468750fbe8b49fd86792624abd879f19e authored over 18 years ago
8cf6f49468750fbe8b49fd86792624abd879f19e authored over 18 years ago
Updated release number to 0.2.0 for packages.
44001353e6e58412c109ed202047f58515a4cdd3 authored over 18 years ago
44001353e6e58412c109ed202047f58515a4cdd3 authored over 18 years ago
Updated docs ready for release 0.2.0
806d43b79c83c814f22103e82e13ac53862c7fcf authored over 18 years ago
806d43b79c83c814f22103e82e13ac53862c7fcf authored over 18 years ago
Further separation of multiple_setup_and_teardown into smart_test_case library so it can be used in isolation.
b792d2a4adb91db101dd1c49d842d337816431ed authored over 18 years ago
b792d2a4adb91db101dd1c49d842d337816431ed authored over 18 years ago
Oops - fixed broken test.
b35eb450b49534c698a3e7598d8416e860bd3ae0 authored over 18 years ago
b35eb450b49534c698a3e7598d8416e860bd3ae0 authored over 18 years ago
Another fix after revieworld integration.
57f0a718438cff221435646caef1a50e3afc7d95 authored over 18 years ago
57f0a718438cff221435646caef1a50e3afc7d95 authored over 18 years ago
Fixes after integration with revieworld.
3b2706c6c4e55015da811e29930e7340662d5d83 authored over 18 years ago
3b2706c6c4e55015da811e29930e7340662d5d83 authored over 18 years ago
Added todo item.
44662f4c1b78b2942f3a750fac238be2dc14ab50 authored over 18 years ago
44662f4c1b78b2942f3a750fac238be2dc14ab50 authored over 18 years ago
Added auto-verify functionality and refactored setup and teardown. Improved tests.
8aa0b4b6c4d8613312be94673c7cca379570dbeb authored over 18 years ago
8aa0b4b6c4d8613312be94673c7cca379570dbeb authored over 18 years ago
Change suggested by Luke Redpath so that Stubba plays nicely with RSpec.
4040ca63082f75568803c22e9641a5fdd335bc52 authored over 18 years ago
4040ca63082f75568803c22e9641a5fdd335bc52 authored over 18 years ago
Added agiledox and rubyforge rdoc publishing rake tasks.
9173fa6a9c51b62ff36e1612b8faf996feb63c8d authored over 18 years ago
9173fa6a9c51b62ff36e1612b8faf996feb63c8d authored over 18 years ago
Added publish_rdoc take task.
d1d7eaa2246cd1f1320a6a3d9f4fae6cb9273412 authored over 18 years ago
d1d7eaa2246cd1f1320a6a3d9f4fae6cb9273412 authored over 18 years ago
Changed version number.
f7a1ccc7b853d07c30732809a4907308b9b28964 authored over 18 years ago
f7a1ccc7b853d07c30732809a4907308b9b28964 authored over 18 years ago
Tweaks to README and TODO. Example code in README has now been tested. Added rdoc task to Rakefile.
814fc4d7abc58c9cfe53fa1fe3e6a805bb9bbf4f authored over 18 years ago
814fc4d7abc58c9cfe53fa1fe3e6a805bb9bbf4f authored over 18 years ago
Added first draft of README and switch on rdoc generation for gem.
2b3f6592dcf22e22c665eac6076f9f1b49025d1d authored over 18 years ago
2b3f6592dcf22e22c665eac6076f9f1b49025d1d authored over 18 years ago
More moving and renaming classes.
5495c7011464de74690cf8e6a0a0fccd34a6b758 authored over 18 years ago
5495c7011464de74690cf8e6a0a0fccd34a6b758 authored over 18 years ago
More reorganization.
32d9f6109f4175bd232f96a43584c6e98f865e80 authored over 18 years ago
32d9f6109f4175bd232f96a43584c6e98f865e80 authored over 18 years ago
More moving and renaming of classes.
a77167a81e85fde012ff4bbb69b1b1df6e6810da authored over 18 years ago
a77167a81e85fde012ff4bbb69b1b1df6e6810da authored over 18 years ago
Moved mocha tests into mocha directory.
e43398de80fb56ea08c74240f472d579800ed0e3 authored over 18 years ago
e43398de80fb56ea08c74240f472d579800ed0e3 authored over 18 years ago
Renamed a bunch of stubba files.
076bdaed9b7f28490c2ca4b5d72681aa9aeaa152 authored over 18 years ago
076bdaed9b7f28490c2ca4b5d72681aa9aeaa152 authored over 18 years ago
Moved stubba tests into stubba subdirectory.
d7c634900b9ef8be9f9aea34cfd704e058a9b6af authored over 18 years ago
d7c634900b9ef8be9f9aea34cfd704e058a9b6af authored over 18 years ago
Namespaced and renamed stubba classes.
021262a97b52668dee8e547dd3221d3bfc575ad9 authored over 18 years ago
021262a97b52668dee8e547dd3221d3bfc575ad9 authored over 18 years ago