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

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.

Thanks
Tom
PS: I am also going to post this message to the spork group.

-- 
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.

Reply via email to