Skip to content

Instantly share code, notes, and snippets.

@suchov
Created April 12, 2017 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suchov/8fa2966ae8a27a36e69a1a32e9285e21 to your computer and use it in GitHub Desktop.
Save suchov/8fa2966ae8a27a36e69a1a32e9285e21 to your computer and use it in GitHub Desktop.
Have a fast spec helper
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