RSpec hooks run at the before and after the suite
"Adding hooks that run before and after your RSpec test suite looks like this:
# spec/helper/spec_helper.rb RSpec.configure do |config| config.before(:suite) do My::Service.build! end config.after(:suite) do My::Service.tear_down! end end
"
Source: https://til.hashrocket.com/posts/146bd575cb-cucumber-suite-hooks
last updated october 2016