Patrick could probably explain it better than I, as he did more investigating into repro cases. I believe that the gist of it is that if you call "expects" for the same method more than once, all of the expectations except for the very first one will just be ignored and result in false positives. So:
foo.expects(:bar) # this one will work properly foo.expects(:bar) # this one will be ignored and will never cause a failure. Is that about right, Patrick? On Tue, Feb 7, 2012 at 9:42 AM, R.I.Pienaar <r...@devco.net> wrote: > hey, > > do you have details of what the problem is? > > thanks > > ----- Original Message ----- > > From: "Chris Price" <ch...@puppetlabs.com> > > To: puppet-dev@googlegroups.com > > Sent: Tuesday, February 7, 2012 5:36:19 PM > > Subject: [Puppet-dev] mocha issues > > > > Hi all, > > > > > > Just an FYI, Patrick and I discovered a pretty major bug in mocha > > versions 0.10.2 and 0.10.3 that will cause false positives on your > > rspec runs. The Jenkins machines seem to be mostly running 0.9.12, > > which is not affected by this bug--so hopefully we're not at risk of > > errors being masked by this. However, you might want to check and > > see what version you are running locally... I caused some build > > failures on Friday because the specs appeared to run fine locally > > with 0.10.3 but failed when Jenkins ran them. > > > > > > Patrick put together a repro case and submitted it to the mocha > > developers, so hopefully this will be fixed in an upcoming release. > > > > > > Thanks > > Chris > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Puppet Developers" group. > > To post to this group, send email to puppet-dev@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-dev+unsubscr...@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/puppet-dev?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To post to this group, send email to puppet-dev@googlegroups.com. > To unsubscribe from this group, send email to > puppet-dev+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-dev?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.