Posted over 6 years ago. Visible to the public. Repeats.
Stop writing "require 'spec_helper'" in every spec
Simply add this to your .rspec
instead:
Copy--require spec_helper
If you are on rspec >= 3 and use a rails_helper.rb
require this instead of the spec_helper
:
Copy--require rails_helper
If you are using parallel_tests
and this is not working for you, .rspec
might be ignored. Try using a .rspec_parallel
file.
Your development team has a full backlog of feature requests, chores and refactoring coupled with deadlines? We are familiar with that. With our "DevOps as a Service" offering, we support developer teams with infrastructure and operations expertise.