Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

[will_paginate] `rake test:plugins` will fail in some cases

#44

While invoking `rails test:plugins` in the root of an application, will_paginate won't paginate but drop some fatal errors. I've found two causes for these errors:

1) If other plugins load the full Rails environment, `test/helper.rb` won't require `activerecord_test_connector` -- 'cause of the defined?(ActiveRecord) statement, and

2) when tests are invoked from outside (eg. from a rails app's root), the first three `require` will fail in `init.rb`. An absolute path may solve this error.

I've attached my solution. Please feel free... :)

ps: sry for my bad english, it's not my native language.

Reported by Bence Golda · June 26th, 2007 @ 04:17 AM

State: resolved
Milestone: none
Assigned to: Mislav Mislav

Activity

  1. Chris Wanstrath
    Chris Wanstrath
    • State changed from new to open
    • Assigned user changed from Chris Wanstrath to Mislav

    June 26th, 2007 @ 04:17 AM

  2. Chris Wanstrath
    Chris Wanstrath
    • State changed from open to resolved

    (from [276]) Will Paginate: polish out loading to compensate for different scenarios. [Bence Golda] [#44 state:resolved]

    http://require.errtheblog.com/pl...

    June 26th, 2007 @ 04:17 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.