Hi, I'm trying to generate a mountable engine and have done the
following:

rails plugin new foo --mountable
cd foo
rails generate scaffold bar name:string
rake test


This results in errors for every test such as this:

  4) Error:
test_should_get_index(Foo::BarsControllerTest):
NoMethodError: undefined method `bars' for #<Foo::BarsControllerTest:
0x91f44c>
    actionpack (3.1.0.rc5) lib/action_dispatch/testing/assertions/
routing.rb:175:in `method_missing'
    /foo/test/functional/foo/bars_controller_test.rb:6:in
`_callback_before_35'
    activesupport (3.1.0.rc5) lib/active_support/callbacks.rb:440:in
`_run_setup_callbacks'
    activesupport (3.1.0.rc5) lib/active_support/callbacks.rb:81:in
`send'
    activesupport (3.1.0.rc5) lib/active_support/callbacks.rb:81:in
`run_callbacks'
    activesupport (3.1.0.rc5) lib/active_support/testing/
setup_and_teardown.rb:65:in `run'

Ironically, running 'rails server' and going to 'http://localhost:3000/
foo/bars' shows that the engine and all the routing is working
perfectly.  But all tests choke on not being able to find 'bars_path'
or the like.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to