From: David Chelimsky Date: 2008-03-25T21:36:06+09:00 Subject: Re: How to control order of spec execution in "spec specs/* " ? On Thu, Mar 20, 2008 at 12:01 PM, Andrew Chen wrote: > This is a rspec question. > > I have many rspecs in a spec directory. > > In the execution, I need some tests run before others. So I name the > files as: 01_deploy_spec.rb, 02_post_process_spec.rb > > I want 01* to be run before 02* > > I found that the default order in rspec is in the order of last file > modification. The default is actually alpha. mtime must be invoked explicitly. Do you have mtime listed in spec/spec.opts? If so, get rid of it and you should be OK. Cheers, David > > What are the ways to do it? > > Thanks > ~Andrew Chen > >