#13 ✓resolved
Yi Wen

loading order issue

Reported by Yi Wen | July 28th, 2008 @ 10:30 AM

Core.rb is like this:

Dir[File.join(File.dirname(__FILE__), "core", "*.rb")].each do |file|

require File.expand_path(file)

end

It seems loading working most of time. But on one of my ubuntu boxes, page.rb is loaded before logging.rb, which generated an error because module Logging is not loaded yet.

Comments and changes to this ticket

  • Yi Wen

    Yi Wen July 28th, 2008 @ 10:51 AM

    Sorry. Actually after updating to the newest version. My problem is gone. But this is fixed becuase of sort. What if in the future, Pqge requires a new module whose name is after page?

    Mu suggestion is to load everything but page.rb first, then load page.rb

    Thanks

  • Bryan Helmkamp

    Bryan Helmkamp October 21st, 2008 @ 11:33 PM

    • State changed from “new” to “resolved”

    Good point. I'm going to close this as fixed for now, but I'm adding to my list to take a look at the "require" order/structure webrat uses to see how it can be more robust.

    thanks.

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.

New-ticket Create new ticket

Create your profile

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

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages