I’m writing a series of RSpec tests for a Rails plugin. In some of
these tests I use meta-programming (using class_eval) to change core
features of my environment. But these changes to the environment also
affect the following tests that come after. Is there a way to reload
the environment either before or after a certain test has run, or
maybe before or after a certain spec file?