inherit_views question (perhaps a little off topic)

0 views
Skip to first unread message

Tim Harding

unread,
Jun 19, 2008, 9:40:56 AM6/19/08
to resources_controller
Hi,

is there and inherit_views group? If so where?

If not I wonder if you might not mind a question here.

When I make a call to display an inherited view from a functional test
or a browser it is working fine:

GET :edit, :id => 1 or from a browser http://localhost:3000/admin/works/1/edit

things go very well.

When I call GET /admin/works/1/edit from an integration test or from
an rspec user story inherited partial templates are not found.

views/base/edit.html.erb
views/base/_action_bar.html.erb
views/works/_form.html.erb

edit.html renders action_bar and form

if i create views/works/action_bar things are all okay from the
integration test.


see: http://pastie.org/217977 for the error.


thank you.

-tim




Tim Harding

unread,
Jun 19, 2008, 10:36:22 AM6/19/08
to resources_controller
more to this:

render_partial_with_inherit_views is called from the within the development server context but not from an integration test context.

-tim

Ian White

unread,
Jun 19, 2008, 10:41:40 AM6/19/08
to resources_...@googlegroups.com
Hi Tim,

This is a bug in rspec.


Basically, rspec munges render_partial so that it short circuits any aliases.


--
Argument from Design--We build web applications
Western House 239 Western Road Sheffield S10 1LE




Tim Harding

unread,
Jun 19, 2008, 10:59:53 AM6/19/08
to resources_...@googlegroups.com
Hi Ian, thank you very much.

-Tim
Reply all
Reply to author
Forward
0 new messages