Class | MSpecScript |
In: |
lib/mspec/utils/script.rb
|
Parent: | Object |
MSpecScript provides a skeleton for all the MSpec runner scripts.
Attempts to resolve partial as a file or directory name in the following order:
1. +partial+ 2. +partial+ + "_spec.rb" 3. <tt>File.join(config[:prefix], partial)</tt> 4. <tt>File.join(config[:prefix], partial + "_spec.rb")</tt>
If it is a file name, returns the name as an entry in an array. If it is a directory, returns all *_spec.rb files in the directory and subdirectories.
If unable to resolve partial, returns Dir[partial].
Resolves each entry in list to a set of files.
If the entry has a leading ’^’ character, the list of files is subtracted from the list of files accumulated to that point.
If the entry has a leading ’:’ character, the corresponding key is looked up in the config object and the entries in the value retrieved are processed through entries.