search for: codeheadsystems

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

2007 Dec 21
5
Mocha and rails 2.0.2?
...9;m not doing this in a way that makes sense... specifically, I want to stub out the method ''exists?'' to return true when its called twice. Again, it worked fine in all rails versions up to 2.0.2, and only fails with rails 2.0.2... Is it me? -- Virtually, Ned Wolpert http://www.codeheadsystems.com/blog/ "Settle thy studies, Faustus, and begin..." --Marlowe
2008 Jan 28
9
Nested matchers
We''re encountering a failure with Mocha 0.5.6. We had this expectation: game_version.expects(:attributes=).with(:game_file => kind_of(GameFile), :game_id => @game.id) This expectation was passing with 0.5.5, but fails with 0.5.6. I added this test to parameter_matcher_acceptance_test.rb, which passes in 0.5.5 and fails in 0.5.6 def test_should_match_nested_parameters
2008 Jun 12
2
Anyone using trunk?
Has anybody been using Mocha trunk over the last month or two? I''ve done quite a bit of internal refactoring and wondered whether anyone had any problems. There are also a bunch of new features e.g. states, sequences, extra parameter matchers & configurable warnings, but these are not documented in the on-line rdoc. I wondered if anyone has been looking at the rdoc in trunk and