search for: mock_methods

Displaying 3 results from an estimated 3 matches for "mock_methods".

Did you mean: mock_method
2007 Jan 02
4
allow stubbing of previously defined methods such as "id"
On my current project I needed to create a stub that responded correctly to the id message. Here''s the change I put into my copy of head. Index: lib/mocha/mock_methods.rb =================================================================== --- lib/mocha/mock_methods.rb (revision 1114) +++ lib/mocha/mock_methods.rb (working copy) @@ -68,6 +68,7 @@ method_names = method_names.is_a?(Hash) ? method_names : { method_names => nil } method_names.ea...
2006 Dec 14
1
Patch: make rdoc of lib/mocha/object.rb instead of lib/stubba/object.rb
...ne-numbers" << "--inline-source" - task.rdoc_files.include(''README'', ''RELEASE'', ''COPYING'', ''MIT-LICENSE'', ''agiledox.txt'', ''lib/mocha/auto_verify.rb'', ''lib/mocha/mock_methods.rb'', ''lib/mocha/expectation.rb'', ''lib/stubba/object.rb'') + task.rdoc_files.include(''README'', ''RELEASE'', ''COPYING'', ''MIT-LICENSE'', ''agiledox.txt'', ''lib/moc...
2017 Jan 04
5
RFC: Reconsidering adding gmock to LLVM's unittest utilities
A long time ago I suggested that we might want to add gmock to compliment the facilities provided by gtest in LLVM's unittests. It didn't go over well: 1) There was concern over the benefit vs. the cost 2) Also concern about what the facilities would look like in practice and whether they would actually help 3) At the time, I didn't have good, large examples of what these things might