On Jueves, 13 de Mayo de 2010 14:19:25 hoenth escribió:
> I have been using activescaffold in my application for more than a
> year, and have been using cucumber to do integration testing. All has
> worked well, until I recently started trying to use spork to provide a
> drb to cucumber to speed up the tests.
>
> When cucumber hits pages that contain activescaffold embeds, like the
> following:
>
> 25: <%= render :active_scaffold => 'messages', :constraints =>
> { :group_id => @classroom.id, :group_type => 'Classroom' } %>
>
> I get the following error:
>
> You have a nil object when you didn't expect it!
> You might have expected an instance of ActiveRecord::Base.
> The error occurred while evaluating nil.[]
> (ActionView::TemplateError)
> On line #25 of app/views/classrooms/show.html.erb
Don't you get a backtrace?
>
> If I run cucumber without spork, I don't get the error.
>
> If the cucumber test does not encounter an embedded active_scaffold
> partial, I don't get the error.
>
> I am having a hard time pointing a finger at the problem, as there is
> a lot going on here, between spork, cucumber, active_scaffold,
> render_component, etc. When using spork, I can't seem to break into a
> debugger session to try to trace the error to its source.
>
> Any advice you can provide would be greatly appreciated.
I don't know spork, maybe is a problem with render_component.
>
> Thanks
> Tom
> PS: I am also going to post this message to the spork group.
--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.