From cde9ae02fece92cf08e591a4f9ebeb6488eeb9aa Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 1 Jul 2013 13:07:35 -0700 Subject: [PATCH] Prevent clash between path require and variable name --- spec/stdlib/fs-utils-spec.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/stdlib/fs-utils-spec.coffee b/spec/stdlib/fs-utils-spec.coffee index 3031af662..fbd18a0ee 100644 --- a/spec/stdlib/fs-utils-spec.coffee +++ b/spec/stdlib/fs-utils-spec.coffee @@ -101,7 +101,7 @@ describe "fsUtils", -> paths = fsUtils.listSync(project.getPath(), ['.css', 'coffee']) expect(paths).toContain project.resolve('css.css') expect(paths).toContain project.resolve('coffee.coffee') - expect(path).toMatch /(css|coffee)$/ for path in paths + expect(listedPath).toMatch /(css|coffee)$/ for listedPath in paths describe ".list(path, [extensions,] callback)", -> paths = null @@ -124,7 +124,7 @@ describe "fsUtils", -> runs -> expect(paths).toContain project.resolve('css.css') expect(paths).toContain project.resolve('coffee.coffee') - expect(path).toMatch /(css|coffee)$/ for path in paths + expect(listedPath).toMatch /(css|coffee)$/ for listedPath in paths describe ".absolute(relativePath)", -> it "converts a leading ~ segment to the HOME directory", ->