arboleya / coffee-toaster

Minimalist build system for CoffeeScript.
114 stars 23 forks source link

class name toaster.generators.Config generates an error #55

Closed G3z closed 11 years ago

G3z commented 11 years ago

in file src/generators/config.coffee class name toaster.generators.Config generates the following error :

$ make test
build/coffee-toaster/bin/toaster . -c
path.existsSync is now called `fs.existsSync`.
Compiled /Users/g3z/Documents/coffee-toaster-G3z/lib/toaster.js @ 0:33:30
node_modules/vows/bin/vows spec/*.coffee --spec

/Users/g3z/Documents/coffee-toaster-G3z/lib/toaster.js:1086
  __t('toaster.generators').toaster.generators.Config = (function(_super) {
                                   ^
TypeError: Cannot read property 'generators' of undefined
    at Object.<anonymous> (/Users/g3z/Documents/coffee-toaster-G3z/lib/toaster.js:1086:36)
    at Object.<anonymous> (/Users/g3z/Documents/coffee-toaster-G3z/lib/toaster.js:1380:4)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/Users/g3z/Documents/coffee-toaster-G3z/spec/error_with_line_number.coffee:16:13)
    at Object.<anonymous> (/Users/g3z/Documents/coffee-toaster-G3z/spec/error_with_line_number.coffee:56:4)
make: *** [test] Error 1

changing class name to Config fixes the problem

$ make test
build/coffee-toaster/bin/toaster . -c
path.existsSync is now called `fs.existsSync`.
Compiled /Users/g3z/Documents/coffee-toaster-G3z/lib/toaster.js @ 0:33:54
node_modules/vows/bin/vows spec/*.coffee --spec

  ♢ Error with line number 

  Compiling a project that has syntax error on file "app.js" at line 12
    ✓ should rise the error precisely

  ♢ Generators (-n, -i) 

  A new project created with default values
    ✓ should match the default template
  A new project created with custom values
    ✓ should match the custom template
  A config file created for an existent project
    ✓ should match the 'toaster.coffee' template

✓ OK » 4 honored (0.988s) 
G3z commented 11 years ago

Please delete this