From: Michel Demazure Date: 2008-04-18T16:38:26+09:00 Subject: strange Expectations answer I am using Expectations and I found something which looks strange, when you call methods. For instance: 1. No problem with: require 'expectations' count = [] Expectations do expect(0) { count.size } end 2. But when you add a second test, the *first one* fails : require 'expectations' count = [] Expectations do expect(0) { count.size } end count << "a" Expectations do expect(1) { count.size } end The first call to 'count.size' now returns 1. I'd like, first to understand, and second to know to use Expectations when you follow a story like the one above. Thks. -- Posted via http://www.ruby-forum.com/.