Right now I'm working on a module that will kick in for rails projects that will use ActionDispatch::Reloader to reload rails classes the right way (like it does in development environment) rather than using load. Using load can be problematic for several reasons. Removing methods and classes in the code does not cause them to be undefined. Using RSpec 1 and maybe other test frameworks, each test run makes new duplicate copies of each spec, and the old copies still fail if they originally were. In general, it's not idempotent. This patch I'm working on this morning should fix that for Rails >= 3.1 projects.
Any thoughts on this?
Right now I'm working on a module that will kick in for rails projects that will use
ActionDispatch::Reloaderto reload rails classes the right way (like it does in development environment) rather than usingload. Usingloadcan be problematic for several reasons. Removing methods and classes in the code does not cause them to be undefined. Using RSpec 1 and maybe other test frameworks, each test run makes new duplicate copies of each spec, and the old copies still fail if they originally were. In general, it's not idempotent. This patch I'm working on this morning should fix that for Rails >= 3.1 projects.Any thoughts on this?