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.

James Mead's latest activity

Thursday, January 29 2009
13 [#22564] Allow default return value to be specified for stub_everything was updated in mocha
  • James Mead
    James Mead commented at 1:13 PM

    I'm wondering whether it would be better to introduce the idea of Method Matchers as a more flexible alternative to stub_everything. So stub_everything would be...

32 stub_everything should mean mock responds to anything was updated in mocha
  • James Mead
    • State changed from new to resolved
    by James Mead at 12:52 PM
  • James Mead
    James Mead created the ticket at 12:49 PM
    
      def test_should_respond_to_any_method_if_stubbing_everything
        mock = stub_everything
        assert mock.respond_to?(:abc)
        assert mock.respond_to?(:xyz...
31 Report expectation return values in error messages was created in mocha
  • James Mead
    James Mead created the ticket at 11:29 AM

    I think jMock does this.

30 minitest_tu_shim compatibility was updated in mocha
  • James Mead
    • Tag set to bug-report
    • State changed from new to resolved
    by James Mead at 11:11 AM

    Fixed in a slightly different way [1].

    I'm marking this as resolved - please reopen it if you're not happy with the solution.

    Thanks, James.

    [1] http://github....

Monday, January 26 2009
18 [#22561] responds_with was updated in mocha
  • James Mead
    • State changed from new to resolved
    by James Mead at 5:30 PM

    This was released some time ago in 0.9.2, so I'm marking it as "resolved".

    Please let us know if it's not working for you.

    Thanks, James.

19 [#22563] CircularReferenceError calling #to_json on a mocha-ified object was updated in mocha
  • James Mead
    • State changed from new to invalid
    by James Mead at 5:23 PM

    I can't reproduce this bug. I've run your test as Test::Unit tests with Rails 2.2, Mocha 0.9.4 and Ruby 1.8.6. The test passes.

    I'm marking this ticket as "inva...

Sunday, January 04 2009
13 [#22564] Allow default return value to be specified for stub_everything was updated in mocha
28 Possible issue with public_instance_methods and AR attributes...? was created in mocha
  • James Mead
    James Mead created the ticket at 5:13 PM

    Quote from Nathan Zook:-

    If klass < ActiveRecord::Base, klass.public_instance_methods should include the attribute setters even before any instance of klass has...