Posted over 3 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.

Once an application no longer requires constant development, it needs periodic maintenance for stable and secure operation. makandra offers monthly maintenance contracts that let you focus on your business while we make sure the lights stay on.

Owner of this card:

Avatar
Tobias Kraze
Last edit:
about 1 year ago
by Arne Hartherz
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Tobias Kraze to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more