...

/

Running Rails-free Tests

Running Rails-free Tests

Learn to run tests in separate directories for fast tests.

If we have some tests that run without loading the Rails environment, we need to be careful to run them separately from the slower, Rails-loading tests. We lose the benefit of not loading Rails if some of our tests do load Rails. Also, if we’re doing any namespace munging in our fast tests, mixing and ...