# File lib/rspec/rails/module_inclusion.rb, line 9
    def include_self_when_dir_matches(*path_parts)
        instead = "\n\nRSpec.configure do |c|\nc.include self, :example_group => {\n:file_path => /\#{path_parts.join('\\/')}/\n}\nend\n\n"
      lambda do |c|
        RSpec.deprecate('include_self_when_dir_matches', instead, 'rails-3.0')
        c.include self, :example_group => {
          :file_path => Regexp.compile(path_parts.join('[\\\/]'))
        }
      end
    end