This project is archived and is in readonly mode.
generator test failure: undefined method 'parents'
Reported by jack dempsey (jackdempsey) | March 12th, 2011 @ 11:45 PM | in 3.1
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.
Comments and changes to this ticket
-
Santiago Pastorino March 13th, 2011 @ 03:57 AM
- State changed from new to open
- Milestone set to 3.1
- Assigned user set to Piotr Sarnacki
- Importance changed from to Low
-
Piotr Sarnacki April 16th, 2011 @ 07:20 PM
- State changed from open to resolved
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>