node/test/fixtures/json-with-directory-name-mo.../module-stub
Robert Kowalski 36777d2a5f module: test for directories, fix require with ..
Given my home-directory is `/Users/rocko` - and I have a file named
`npm.json` in it and also a repository with name `npm`, which is a
folder for the node-module.

When try to require the `/Users/rocko/npm/index.js` two direcotry
levels down in the npm folder (e.g. `/Users/rocko/npm/test/tap`)
with require("../../") node will load `/Users/rocko/npm/index.json`.

When I use require("../..") node will load `/Users/rocko/npm.json`
which is fixed by this commit.

PR-URL: https://github.com/iojs/io.js/pull/58
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
2014-12-06 22:14:05 +01:00
..
one/two module: test for directories, fix require with .. 2014-12-06 22:14:05 +01:00
one-trailing-slash/two module: test for directories, fix require with .. 2014-12-06 22:14:05 +01:00
index.js module: test for directories, fix require with .. 2014-12-06 22:14:05 +01:00
package.json module: test for directories, fix require with .. 2014-12-06 22:14:05 +01:00