From: Robert Feldt Date: 2006-11-02T02:32:48+09:00 Subject: Re: Probabilistic BDD? > 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... ;) Thanks for your input, /Robert