How to loadby by alphabetical order, not mtime

Hi,
I’m writing my requirements in rspec, however, I can not figure out a
way to execute all specs according to alphabetical order, not by last
modified time.

According to the documentation, it seems like the default is by
alphabetical order, I just can not get that to work. In the unit
tests with the rspec package, seems like only mtime was tested.

Can anyone tell me how to run specs by name order ?

spec spec/*

This will printout

-L, --loadby STRATEGY            Specify the strategy by which

spec files should be loaded.
STRATEGY can currently only be
‘mtime’ (File modification time)
By default, spec files are loaded
in alphabetical order if --loadby
is not specified.

Thanks
~Andrew C.

Hi,

I’m writing my requirements in rspec, however, I can not figure out a
way to execute all specs according to alphabetical order, not by last
modified time.

According to the documentation, it seems like the default is by
alphabetical order, I just can not get that to work. In the unit
tests with the rspec package, seems like only mtime was tested.

Can anyone tell me how to run specs by name order ?

spec spec/*

This will printout

-L, --loadby STRATEGY Specify the strategy by which
spec files should be loaded.
STRATEGY can currently only be
‘mtime’ (File modification time)
By default, spec files are loaded
in alphabetical order if --loadby
is not specified.

Thanks
~Andrew C.

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