On Thu, Jun 19, 2008 at 3:41 PM, Ian White <ian.w.wh
...@gmail.com> wrote:
> Hi Tim,
> This is a bug in rspec.
> http://rspec.lighthouseapp.com/projects/5645/tickets/391-rspec-rails-...
> Basically, rspec munges render_partial so that it short circuits any
> aliases.
> Here's a patch that fixes the issue on rspec
> http://github.com/ianwhite/rspec-rails/commit/f6ac8cc8c37b9adf7167aa4...
> Cheers,
> Ian
> On 19 Jun 2008, at 15:36, Tim Harding wrote:
> 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
> On Thu, Jun 19, 2008 at 2:40 PM, Tim Harding <tim.hard...@gmail.com>
> wrote:
>> 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
> --
> Argument from Design--We build web applications
> Western House 239 Western Road Sheffield S10 1LE
> Mob: +44 (0)797 4678409 | Office: +44 (0)114 2667712
> <http://www.ardes.com/> | <http://blog.ardes.com/ian>