Method: Spec::Runner::Options#determine_project_root
- Defined in:
- lib/spec/runner/options.rb
#determine_project_root ⇒ Object
:nodoc:
106 107 108 109 110 111 112 113 114 115 |
# File 'lib/spec/runner/options.rb', line 106 def determine_project_root # :nodoc: # This is borrowed (slightly modified) from Scott Taylors # project_path project: # http://github.com/smtlaissezfaire/project_path Pathname(File.('.')).ascend do |path| if File.exists?(File.join(path, "spec")) return path end end end |