From: Michel Demazure Date: 2008-04-18T17:20:38+09:00 Subject: Re: strange Expectations answer > Expectations collects all expectations in a file and then runs them. > Basing your tests on outside variables is not a good idea. Restructure > your tests to look like this: > > Expectations do > expect(0) do > count = [] > count.size > end > > expect(1) do > count = [] > count << "a" > count.size > end > end Thanks Ola. Which means that one should not use Expectations when following a story. At step n, one would have to write again all preceeding steps. And have them rerun, with quadratic growth... Back to spec. -- Posted via http://www.ruby-forum.com/.