How to control order of spec execution in "spec specs/* "?

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.

What are the ways to do it?

Thanks
~Andrew C.

On Thu, Mar 20, 2008 at 12:01 PM, Andrew C. [email protected] wrote:

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs