   test "subnamespace", ->
     generator = new Generator "root", pretend: true, quiet: true
     generator.generateFromFiles [
-        "root/my namespace/file.coffee"
+        "root/MyNamespace/file.coffee"
       ]
     .then ({generatedFiles, namespaces}) ->
       assert.eq Object.keys(generatedFiles).sort(), [
+        "root/MyNamespace/index.coffee"
+        "root/MyNamespace/namespace.coffee"
         "root/index.coffee"
-        "root/my namespace/index.coffee"
-        "root/my namespace/namespace.coffee"
         "root/namespace.coffee"
       ]
-      assert.match generatedFiles["root/my namespace/namespace.coffee"], /require.*\.\/namespace/
+      assert.match generatedFiles["root/MyNamespace/namespace.coffee"], /require.*\.\/namespace/
       assert.match generatedFiles["root/namespace.coffee"], /require.*neptune-namespaces/
       assert.doesNotMatch generatedFiles["root/index.coffee"], "addModules"
+      assert.match generatedFiles["root/index.coffee"], "MyNamespace"
+
+  test ".namespaces are optional", ->
+    generator = new Generator "root", pretend: true, quiet: true
+    generator.generateFromFiles [
+        "root/.MyNamespace/file.coffee"
+      ]
+    .then ({generatedFiles, namespaces}) ->
+      assert.eq Object.keys(generatedFiles).sort(), [
+        "root/.MyNamespace/index.coffee"
+        "root/.MyNamespace/namespace.coffee"
+        "root/index.coffee"
+        "root/namespace.coffee"
+      ]
+      assert.match generatedFiles["root/.MyNamespace/namespace.coffee"], /require.*\.\/namespace/
+      assert.match generatedFiles["root/namespace.coffee"], /require.*neptune-namespaces/
+      assert.doesNotMatch generatedFiles["root/index.coffee"], "addModules"
+      assert.doesNotMatch generatedFiles["root/index.coffee"], "MyNamespace"

        "root/file4.coffee"
        "root/0file3.coffee"
        "root/-file2.coffee"
        "root/aSubmodule/foo.coffee"
      ]
    .then ({generatedFiles, namespaces}) ->

        \nrequire .* aSubmodule
        ///
      # file1 not included
      assert.doesNotMatch generatedFiles["root/index.coffee"], /file1/
      assert.eq Object.keys(generatedFiles).sort(), [
        "root/aSubmodule/index.coffee"
        "root/aSubmodule/namespace.coffee"
