Anything new here? What should one do? The tests look allright...

On Sep 1, 8:54 am, manufaktor <[email protected]> wrote:
> I'm having a similar problem, I'm upgrading an engine to 3.1 and all
> my routing specs are red.
>
> Is there a way to debug/print out the generated engine routes? When
> running rake routes from my dummy app I can't see the expanded routes,
> all I see is mything  / {:to=>MyThing::Engine}.
>
> On Aug 11, 4:14 pm, Drew <[email protected]> wrote:
>
>
>
>
>
>
>
> > 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 theroutingis 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