Created
April 12, 2017 08:49
-
-
Save suchov/8fa2966ae8a27a36e69a1a32e9285e21 to your computer and use it in GitHub Desktop.
Have a fast spec helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rspec-rails 3.0 introduced multiple default spec helpers. | |
When you initialize a Rails app with RSpec, it creates a `rails_helper.rb` which loads Rails and a `spec_helper.rb` | |
which doesn’t. When you don’t need Rails, or any of its de- pendencies, require your `spec_helper.rb` | |
for a modest time savings. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment