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.

Activity (RSS)

Thursday, March 05 2009
41 MiniTest integration is counting ExpectationErrors as errors not failures was updated
  • James Mead
    • State changed from new to resolved
    by James Mead at 3:04 PM

    Fixed in this commit :-

    http://github.com/floehopper/moc...

  • James Mead
    James Mead created the ticket at 2:50 PM

    For example with Ruby v1.8.6 and MiniTest gem v1.3.1 :-

    
    gem 'minitest'
    require 'minitest/autorun'
    require 'mocha'
    
    class TempTest < MiniTest::Unit::TestC...
40 mocha_standalone.rb is not really serving much purpose was created
  • James Mead
    James Mead created the ticket at 10:14 AM

    I think we could deprecate this and ask people to require both mocha/api and mocha/object which are a bit more meaningful anyway.

Tuesday, March 03 2009
39 Make parameter matchers more robust was created
Wednesday, February 11 2009
38 Issue with stubs and never was updated
37 Add support for Test::Unit gem v2 was created
  • James Mead
    James Mead created the ticket at 1:10 PM

    In particular the TestCase#run method implementation has changed.

36 Add speccy to rdoc list of supported frameworks was created
  • James Mead
    James Mead created the ticket at 1:08 PM

    See mailing list and/or GitHub pull requests from author.

Wednesday, February 04 2009
35 default_test errors with Rails 2.3 RC1 was updated
  • invalidusrname
    invalidusrname commented at 3:26 AM

    This seems to only be happening on OSX for me. I've tried the same commands on an ubuntu machine and a dreamhost account and they don't have this error.

    I'm usi...

Tuesday, February 03 2009
35 default_test errors with Rails 2.3 RC1 was created
  • invalidusrname
    invalidusrname created the ticket at 12:56 AM

    I think I might've found a bug with Mocha and Rails 2.3 RC1. Creating a new project, there's 5 tests that fail automatically. Not sure if this is a mocha proble...

Friday, January 30 2009
13 [#22564] Allow default return value to be specified for stub_everything was updated
  • John Hume
    John Hume commented at 1:24 PM

    The method matcher idea is interesting. I'm imagining an API that lets you chain selectors together, though I'm not sure it would be sane to use something like ...

Thursday, January 29 2009
34 MiniTestAdapterTest fails in Ruby 1.9.0-5 was created
  • James Mead
    James Mead created the ticket at 6:58 PM

    This is because MiniTest has unexpected filenames and module names.

    Instead of :-

    
    require 'minitest/unit'
    MiniTest::Unit::TestCase
    

    It needs :-

    
    require ...
33 Mocha's own tests fail in Ruby 1.9.1 was created
  • James Mead
    James Mead created the ticket at 6:53 PM

    This is because Test::Unit becomes a thin wrapper around MiniTest and Test::Unit::TestResult is no longer available.

    See http://is.gd/hI3e for more info.

    It is ...

13 [#22564] Allow default return value to be specified for stub_everything was updated
  • 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
  • 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
  • James Mead
    James Mead created the ticket at 11:29 AM

    I think jMock does this.

30 minitest_tu_shim compatibility was updated
  • 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....

Wednesday, January 28 2009
30 minitest_tu_shim compatibility was created
  • Matthias Hennemeyer
    Matthias Hennemeyer created the ticket at 5:24 PM

    When running ruby 1.8 and using the minitest_tu_shim (sudo use_minitest yes), and you run the following:

    
    require 'test/unit'
    require 'rubygems'
    require 'mo...
Monday, January 26 2009
18 [#22561] responds_with was updated
  • 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
  • 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...

Tuesday, January 06 2009
10 [#17695] RR style proxies was updated
Sunday, January 04 2009
13 [#22564] Allow default return value to be specified for stub_everything was updated
28 Possible issue with public_instance_methods and AR attributes...? was created
  • 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...

27 Improve the RubyForge website was created
  • James Mead
    James Mead created the ticket at 10:21 AM

    Build a simple static website which ties together all the relevant bits of Mocha...

    • Documentation i.e. rDoc
    • Source Code on GitHub
    • Continuous Integration on Run...
26 The MiniTest test should run in the Continuous Integration environment was created
  • James Mead
    James Mead created the ticket at 10:18 AM

    Currently this only runs if MiniTest is available in the environment and it is not currently available in the RunCodeRun environment.

25 Run tests with multiple versions of Ruby in Continuous Integration environment was created
  • James Mead
    James Mead created the ticket at 10:15 AM

    The continuous integration environment should run all tests using a sensible set of Ruby versions instead of relying on James to do it manually.

    Try asking the ...

24 Completely automate the release process was created
Saturday, January 03 2009
23 Provide Demeter-violating stubbing extension was created
  • James Mead
    James Mead created the ticket at 1:13 PM

    Rails association proxies and named-scopes are sometimes cumbersome to mock because of the necessary (?) train-wreck code. Flexmock provides a mechanism to make...

Friday, January 02 2009
22 Provide mock_model or equivalent was created
  • James Mead
    James Mead created the ticket at 5:04 PM

    RSpec & FlexMock provide a Rails-specific way to create mocks for ActiveRecord models. Consider adding this to Mocha ideally in an entirely optional way i.e. no...

Thursday, January 01 2009
21 Provide a way to de-Mochify an object was created
20 Reduce Mocha footprint was created
  • James Mead
    James Mead created the ticket at 11:46 PM

    There is a small chance that changes Mocha makes to e.g. Object might cause interference with other code. It would be better to reduce Mocha's footprint in the ...

19 [#22563] CircularReferenceError calling #to_json on a mocha-ified object was created
  • James Mead
    James Mead created the ticket at 7:49 PM

    Date: 2008-10-26 19:09 Opener: James Mead

    Bill Kocik reports:-

    
    def do_something
     @something = Something.find(:first)
     @something.do_whatever
     render :json...
18 [#22561] responds_with was updated
  • James Mead
    James Mead commented at 7:46 PM

    ate: 2008-10-26 18:46 Sender: James Mead

    Thanks for letting me know. This has actually already been fixed in revision 351 http://github.com/floehopper/moc... ,...

  • James Mead
    James Mead created the ticket at 7:46 PM

    Date: 2008-10-26 16:02 Opener: Nobody

    It seems you have to manually require 'mocha/parameter_matchers/responds_with' to be able to use the responds_with functio...

17 [#17118] Expectations should take precedence over stubs was updated
  • James Mead
    James Mead commented at 7:43 PM

    Date: 2008-08-06 21:05 Sender: James Mead

    Yossef: I have responded to your comment on the same thread http://groups.google.com/group/m... on the mailing list.

    ...

  • James Mead
    James Mead commented at 7:42 PM

    Date: 2008-08-06 18:54 Sender: James Mead

    Rick: I hope you don't mind, but I've responded to your comment on the mailing list http://groups.google.com/group/m....

  • James Mead
    James Mead commented at 7:42 PM

    Date: 2008-08-06 00:17 Sender: Yossef Mendelssohn

    I'd like to add my vote to this issue. I'm glad that the state machine feature makes what I want to test possi...

  • James Mead
    James Mead commented at 7:41 PM

    Date: 2008-08-06 00:15 Sender: Rick Bradley

    Argh. I've been getting bitten by this too. At least I understand the source of the problem now.

    Just my opinions, b...

  • James Mead
    James Mead commented at 7:40 PM

    Date: 2008-01-20 17:01 Sender: James Mead

    You are correct that this behaviour did change between Mocha v0.4.0 and v0.5.0 (in revision 115).

    The idea of this cha...

2 earlier changes…
  • James Mead
    James Mead commented at 7:38 PM

    Date: 2008-01-17 13:34 Sender: James Mead

    Just wanted to let you know I am looking into this. Thanks for providing example tests and code.

  • James Mead
    James Mead created the ticket at 7:38 PM

    Date: 2008-01-15 16:52 Opener: Nobody

    It's a very common practice to setup stubs in a testcase "setup" and set expectations on the same method at the specific t...

16 [#16775] Problem with stubbing find on AR associations was updated
  • James Mead
    James Mead commented at 7:36 PM

    Date: 2008-01-03 10:10 Sender: Jonathan Leighton

    Hi James,

    No problem, thanks for taking the time to look at it.

    Jon

  • James Mead
    James Mead commented at 7:36 PM

    Date: 2008-01-03 09:23 Sender: James Mead

    Hi Jonathan,

    My response was obviously a bit too speedy - I'm afraid I'd only looked at the failing test. BTW I really...

  • James Mead
    James Mead commented at 7:36 PM

    Date: 2008-01-02 23:38 Sender: Jonathan Leighton

    Hi James,

    Thanks for your speedy response. I figured it was probably something to do with AR's magic getting in...

  • James Mead
    James Mead commented at 7:35 PM

    Date: 2008-01-02 23:24 Sender: James Mead

    I haven't yet had a chance to run the tests you attached, but I think there have always been problems trying to stub d...

  • James Mead
    James Mead commented at 7:31 PM

    Date: 2008-01-02 19:53 Sender: Jonathan Leighton

    This is the output from running the test:

    
    $ ruby test/acceptance/rails_has_many_find_acceptance_test.rb 
    Lo...
1 earlier change…
  • James Mead
    James Mead created the ticket at 7:29 PM

    Date: 2008-01-02 19:50 Opener: Jonathan Leighton

    I am having a problem where stubbing find on a has_many association doesn't appear to work. I don't know why an...

15 [#14134] mocha tarballs don't uncompress cleanly was created
  • James Mead
    James Mead created the ticket at 7:25 PM

    Date: 2007-09-21 15:28 Opener: James Mead

    I'm reporting this bug on behalf of Antonio Terceiro who has already done a lot of investigation into the problem. I'm...