RSpec before hooks16 Apr 2016
RSpec before hooks (usually configured in spec/rails_helper.rb):
:examplein RSpec 3):
runs before each example (before each
:contextin RSpec 3):
runs before the 1st example of each top-level example group (before each top-level
describein spec files).
runs once after all spec files have been loaded, before the 1st spec runs (once for each rspec run - regardless of number of spec files in current run).