From: Christian Neukirchen Date: 2006-11-02T20:01:55+09:00 Subject: Re: Probabilistic BDD? "Robert Feldt" writes: >> Personally, I would do something like: >> >> def something_run_a_bunch_of_times >> results = [] >> 100_000.times {results << whatever_is_being_verified} >> results.matches_statistical_requirements_of_domain? >> end >> >> specify "should be totally awesome" do >> something_run_a_bunch_of_times.should.be true >> end >> > Yes, I'll probably keep my own set of test/spec extensions for now. > > lambda {some bool test}.should.be.unlikely > > is kind of tempting though... ;) I would add these methods to the test/spec distribution, but I don't want to add new kinds of contexts, at least not before 1.0. Just send me a patch. > Thanks for your input, > > /Robert -- Christian Neukirchen http://chneukirchen.org