#44 ✓resolved
Bence Golda

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

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

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.

Comments and changes to this ticket

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.

Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Attachments

Pages