Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

generator test failure: undefined method 'parents'

#6568

rails/railties $ ruby -Ilib:test test/generators_test.rb
Loaded suite test/generators_test
Started
..........................E... Finished in 0.694302 seconds.

1) Error: test_rails_root_templates(GeneratorsTest):
NoMethodError: undefined method `parents' for #<TestApp::Application:0x000001021ad670>

/Users/jack/git/rails/railties/lib/rails/railtie/configurable.rb:28:in `method_missing'
/Users/jack/git/rails/railties/lib/rails/generators/named_base.rb:62:in `namespace'
/Users/jack/git/rails/railties/lib/rails/generators/named_base.rb:67:in `namespaced?'

I'm assuming that the desired method was ancestors, not parents. If so, the attached patch fixes it. Piotr is probably the best one to confirm this.

Reported by jack dempsey (jackdempsey) · March 12th, 2011 @ 11:45 PM

State: resolved
Milestone: 3.1
Assigned to: Piotr Sarnacki Piotr Sarnacki
Importance: Low

Activity

  1. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to open
    • Milestone set to 3.1
    • Assigned user set to Piotr Sarnacki
    • Importance changed from to Low

    March 13th, 2011 @ 03:57 AM

  2. Piotr Sarnacki
    Piotr Sarnacki
    • State changed from open to resolved

    April 16th, 2011 @ 07:20 PM