exactly(N).times incorrectly passing for N < actual

Hi

This spec:

     it "should cache the HTML" do
       @uri.should_receive(:read).exactly(N).times
       5.times { @low_graphics_page.story_body }
     end

passes incorrectly for all N <= 4, and only fails for N > 6.

“once” and “twice” are similarly broken.

Is this a known issue? If not, I filed a ticket[1].

Thanks
Ashley

[1]
http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/618-exactlyntimes-incorrectly-failing-for-n-actual


http://www.patchspace.co.uk/

On Thu, Nov 27, 2008 at 4:45 AM, Ashley M.
[email protected] wrote:

“once” and “twice” are similarly broken.

Is this a known issue? If not, I filed a ticket[1].

I commented in the ticket and ask that any subsequent conversation
take place there.

Thanks,
David

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs