summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/rdoc/code_objects.rb
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2011-03-22 11:31:14 -0700
committerMatt Robinson <matt@puppetlabs.com>2011-03-22 11:39:24 -0700
commitf6da3339f59bbd9243a03dc1e417b1fed7955c7e (patch)
treecc264fef5811c7d5e8000bc4048bab86b87064a0 /lib/puppet/util/rdoc/code_objects.rb
parent307df20d7dfd4f5a2a3b67fc2587491560ee951c (diff)
downloadpuppet-f6da3339f59bbd9243a03dc1e417b1fed7955c7e.tar.gz
puppet-f6da3339f59bbd9243a03dc1e417b1fed7955c7e.tar.xz
puppet-f6da3339f59bbd9243a03dc1e417b1fed7955c7e.zip
maint: Change code for finding spec_helper to work with Ruby 1.9
Running the specs under Ruby 1.9 didn't work using the lambda to recurse down directories to find the spec_helper. Standardizing the way to find spec_helper like the rest of specs seemed like the way to go. Here's the command line perl I used to make the change: perl -p -i -e "s/Dir.chdir.*lambda.*spec_helper.*$/require File.expand_path(File.dirname(__FILE__) + '\/..\/..\/spec_helper')/" `find spec -name "*_spec.rb"` Then I fixed the number of dots for files that weren't two levels from the spec dir and whose tests failed. Reviewed-by: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'lib/puppet/util/rdoc/code_objects.rb')
0 files changed, 0 insertions, 0 deletions