Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

floehopper’s Activity (RSS)

Wednesday, June 26 2019
84 Mocking 'each' method with yields/multiple_yields behaves incorrectly under J... was updated in mocha
  • James Mead
    • State changed from new to resolved
    by James Mead at 2:36 PM

    For a long time now issues have been managed on the GitHub repo 1; I'm just doing some tidying up.

    This doesn't appear to be a problem in JRuby v9.2.7, so I'm g...

74 Mock objects should be more of a BlankSlate and no inherit Object instance me... was updated in mocha
  • James Mead
    • State changed from new to resolved
    by James Mead at 2:23 PM

    I think this is effectively superseded by this GitHub issue 1; BasicObject is effectively the equivalent of BlankSlate.

    Issues and pull requests are now being o...

78 Get Ruby 1.9.2 build working on Continuity App was updated in mocha
  • James Mead
    • State changed from new to resolved
    by James Mead at 1:55 PM

    Automated builds now run on Travis CI 1, so this ticket is way out-of-date.

    Issues and pull requests are now being opened on the GitHub repo 2.

    Marking as resol...

51 doc generation fails in 0.9.7 gem was updated in mocha
  • James Mead
    • State changed from open to resolved
    by James Mead at 1:52 PM
Monday, March 04 2013
50 after mocha update from 0.9.5 to 0.9.6 unit tests fails to execute was updated in mocha
  • James Mead
    James Mead commented at 12:56 PM

    Note that the fix mentioned above has been reverted [1] in the latest Mocha.

    We believe the problem can be averted by adding a gem "test-unit" statement before ...

Tuesday, January 24 2012
85 failed expectation not flunking spec was updated in mocha
  • James Mead
    James Mead commented at 7:52 PM

    Sorry for the slow response. Can you try using the following command line :-

    MOCHA_OPTIONS=debug rake test
    

    And paste the output here. Also can you see whether...

Tuesday, January 03 2012
85 failed expectation not flunking spec was updated in mocha
  • Tom Macklin
    Tom Macklin commented at 2:56 PM

    Sorry for the delay, I've been unplugged for the holidays. I am pretty sure I am using the built-in minitest/spec with MRI 1.9.2 as I am never bringing in the m...

Thursday, December 29 2011
85 failed expectation not flunking spec was updated in mocha
  • James Mead
    • State changed from new to open
    by James Mead at 10:08 PM

    Hi Tom. Thanks for reporting this. Can you tell me what version of MiniTest you are using? Is it the version built-in to Ruby v1.9.2 or are you using it as a ge...

  • Tom Macklin
    Tom Macklin created the ticket at 4:51 PM

    Ruby: MRI 1.9.2p290
    mocha: 0.10.0
    tests: minitest/spec

    I have (essentially) the following tests that is are not failing. Both are simplified a bit.

    require 'moc...

Sunday, February 27 2011
84 Mocking 'each' method with yields/multiple_yields behaves incorrectly under J... was updated in mocha
  • James Mead
    • Tag changed from jruby enumerable mocha yields multiple_yields bug each to bug-report, each, enumerable, jruby, multiple_yields, yields
    by James Mead at 8:04 PM

    Hmm. I wonder whether this is related to this other ticket. Have you tried it under MRI Ruby 1.9.2?

    Sorry I haven't got much time to look into this at the mome...

Thursday, February 17 2011
84 Mocking 'each' method with yields/multiple_yields behaves incorrectly under J... was created in mocha
  • Matthew W
    Matthew W created the ticket at 3:30 PM

    I get different results under JRuby (1.5.6 but also seen under 1.5.2) and MRI for this. Using the latest mocha (0.9.12).

    jruby :001 > require 'mocha'; o = Obje...
Sunday, February 06 2011
83 Consider changing method dispatch behaviour as per jMock v2 was created in mocha
  • James Mead
    James Mead created the ticket at 11:04 AM

    See documentation for method dispatch in jMock v1 and jMock v2. Note that matching order is reversed in v2 compared to v1. It would be worth finding out why the...

82 Improve documentation for method dispatch behaviour was created in mocha
Sunday, January 30 2011
81 Improve documentation for Mocha::ClassMethods#any_instance was created in mocha
  • James Mead
    James Mead created the ticket at 2:46 PM

    As per Github issue #20 we should make it clear that when stubbing the same method via an instance and via any_instance, the instance stub will take precedence.

Thursday, January 27 2011
70 Mock#to_ary and Array#flatten problem was updated in mocha
Thursday, January 20 2011
80 Improve docs for Mocha::ObjectMethods#expects to explain original implementat... was created in mocha
Friday, December 31 2010
79 Fail fast if Mocha is required before any test framework has been required was created in mocha
  • James Mead
    James Mead created the ticket at 4:22 PM

    Or at least add more debugging to make it easier to spot this problem.

    Also improve documentation for adding Mocha to a Rails project using Bundler and a Gemfil...

Tuesday, November 30 2010
52 'never' expectation failed: twisted message was updated in mocha
  • dira
    dira commented at 2:18 PM

    Thanks James, that looks great.

  • James Mead
    • State changed from new to resolved
    • Milestone order changed from 0 to 0
    by James Mead at 9:48 AM

    @dira: Sorry for the (very) late response. I've just made an attempt to make the failure message less confusing. You should now see something like this :-

    Moc...
Friday, November 26 2010
54 Examples not correctly linked when generating RDoc using Hanna was updated in mocha
  • James Mead
    • Milestone order changed from 0 to 0
    by James Mead at 12:12 PM

    I suspect this will not have been helped by the fix for this issue.

    I think the best way to sort this out is to move the code examples into RDoc proper, rather ...

58 Add debug logging to help diagnose load order problems was updated in mocha
  • James Mead
    • State changed from new to resolved
    • Milestone order changed from 0 to 0
    by James Mead at 12:09 PM

    This was added in Mocha 0.9.9 in this and other related commits. Closing this ticket.

61 backtrace filter not working properly for files in e.g. integration directory was updated in mocha
  • James Mead
    • State changed from new to invalid
    • Milestone order changed from 0 to 0
    by James Mead at 11:57 AM

    I can't reproduce this.

60 Test failure with test-unit v2.0.6 was updated in mocha
  • James Mead
    • State changed from new to resolved
    • Tag changed from bug-report to bug-report, duplicate
    • Milestone order changed from 0 to 0
    by James Mead at 11:52 AM

    I'm pretty sure this is a duplicate of this ticket which was fixed in Mocha 0.9.9. Closing this ticket.

63 Improve documentation for Mocha::ParameterMatchers::Base#& and #| was updated in mocha
  • James Mead
    • State changed from new to resolved
    • Milestone order changed from 0 to 0
    by James Mead at 11:50 AM

    The current documentation seems sufficient. Maybe it's already been fixed? Closing ticket.

65 Improve documentation for Expectation#raises was updated in mocha
  • James Mead
    • State changed from new to resolved
    • Milestone order changed from 0 to 0
    by James Mead at 11:46 AM

    This was fixed in this commit. I'm closing this ticket.

64 Investigate RunCodeRun build failures was updated in mocha
  • James Mead
    • State changed from new to resolved
    • Milestone order changed from 0 to 0
    by James Mead at 11:44 AM

    RunCodeRun has ceased to exist and I suspect these errors probably related to this ticket which has been resolved. Also we now have ContinuityApp continuous in...

66 Improve performance of backtrace filtering was updated in mocha
  • James Mead
    • State changed from open to resolved
    by James Mead at 11:41 AM
  • James Mead
    • State changed from new to open
    by James Mead at 11:41 AM

    @nikolai: Apologies for the (very) slow response. I've just been looking at this and thinking about it a bit. I've made the change so that the Regexp instance ...

50 after mocha update from 0.9.5 to 0.9.6 unit tests fails to execute was updated in mocha
  • James Mead
    • State changed from open to resolved
    • Milestone order changed from 0 to 0
    by James Mead at 11:12 AM

    This was fixed in Mocha 0.9.9 :-

    $ ruby -v
    ruby 1.8.7 (2010-04-19 patchlevel 253) [i686-darwin10.4.0], MBARI 0x6770, Ruby Enterprise Edition 2010.02
    $ rvm gems...
14 [#8687] Block's return value is dropped on stubbed yielding methods. was updated in mocha
  • James Mead
    • State changed from open to resolved
    by James Mead at 11:02 AM
  • James Mead
    James Mead commented at 11:01 AM

    @visnu: Sorry for the (very slow) response. Nothing here has convinced me that it's sensible to add the Expectation#yields_and_returns method that has been sugg...

  • James Mead
    • State changed from new to open
    by James Mead at 11:00 AM
77 Get Ruby 1.8.6 build working on Continuity App was updated in mocha
Thursday, November 25 2010
78 Get Ruby 1.9.2 build working on Continuity App was updated in mocha
77 Get Ruby 1.8.6 build working on Continuity App was updated in mocha
76 Get Ruby 1.9.1 build working on Continuity App was created in mocha
68 during block for mocha was updated in mocha
  • James Mead
    • State changed from new to resolved
    by James Mead at 5:12 PM

    I'm marking this ticket as closed.

75 MacRuby does not allow native (Objective-C) methods to be undefined was created in mocha
  • James Mead
    James Mead created the ticket at 5:08 PM

    Mocha currently undefines existing methods on a Mock so it can use method_missing. However this does not work for native methods in MacRuby.

    See this commit an...

70 Mock#to_ary and Array#flatten problem was updated in mocha
  • James Mead
    • State changed from open to resolved
    by James Mead at 3:29 PM
  • James Mead
    James Mead commented at 3:28 PM

    Hi Robert,

    Sorry for the delay. I've just been doing some thinking about this and talking it through with my GoFreeRange colleague, Chris Roos.

    We've taken a bi...

74 Mock objects should be more of a BlankSlate and no inherit Object instance me... was created in mocha
Thursday, November 18 2010
70 Mock#to_ary and Array#flatten problem was updated in mocha
Monday, November 15 2010
73 Consider adding jMock custom actions to provide side effect functionality was updated in mocha
  • James Mead
    James Mead commented at 10:28 PM

    @alex: Did my suggestion help...?

  • James Mead
    James Mead commented at 10:26 PM

    @eydaimon: From what I can tell, you want to know that the LogMail#send method has been called. Is that correct? If so, can you not use the following :-

    LogMai...