lib/utilities.rb in test-harness-0.6.0 vs lib/utilities.rb in test-harness-0.6.1

- old
+ new

@@ -23,10 +23,10 @@ parent_class_name ? constantize(parent_class_name) : Object end def register_components(component_type) Dir.glob(File.join(TestHarness.autoload_path, "#{component_type}/**/**.rb")).each do |file| - component = file.sub(TestHarness.autoload_path, '').sub(/^\/?#{component_type}\//, '').sub(/\.rb$/, '') + component = file.sub(TestHarness.autoload_path.to_s, '').sub(/^\/?#{component_type}\//, '').sub(/\.rb$/, '') require file yield component if block_given? end end end