Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support/lib/rails/generate.rb method find_generator_names does not appear to return a list #3

Closed
tomPorter opened this issue Nov 10, 2009 · 4 comments

Comments

@tomPorter
Copy link

When I issue shift-ctl-pipe and pick the generate option(1) I only see the standard generators listed in known_generators. Looks like find_generator_names returns an empty list.

How do I run the tests supplied with the bundle?

mac os x 10.6 RoR bundle from git,

@tomPorter
Copy link
Author

results of running test:

/Users/tporter/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/test
tporter@tinnie:test (master)> ruby test_generator.rb
Loaded suite test_generator
Started
EE.
Finished in 0.000583 seconds.

  1. Error:
    test_find_generator_names(TestBinGenerate):
    NameError: uninitialized constant Generator::RailsPath
    ./../lib/rails/generate.rb:39:in find_generator_names' test_generator.rb:12:intest_find_generator_names'

  2. Error:
    test_generators(TestBinGenerate):
    NameError: uninitialized constant Generator::RailsPath
    ./../lib/rails/generate.rb:39:in find_generator_names' ./../lib/rails/generate.rb:30:insetup_generators'
    test_generator.rb:21:in `test_generators'

3 tests, 1 assertions, 0 failures, 2 errors

@drnic
Copy link
Owner

drnic commented Mar 4, 2010

I have a feeling this has been broken for a long time.

Eww, this will also be a pain for rails3 support with it's new generator system.

Nonetheless, it'd be great to have it working.

@drnic
Copy link
Owner

drnic commented Mar 4, 2010

Ok, first things first, test_generate.rb is now working.

@drnic
Copy link
Owner

drnic commented Mar 4, 2010

Ok, now it is finding all the non-standard generators again (NOTE: must remove Builder.rb from /Applications/TextMate.app/Contents/SharedSupport/Support/lib - there is another ticket to fix this bug)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants