In RSpec, what’s the difference between before(:suite) and before(:all)?
When a before(:all) is defined in the RSpec.configure block it is called before each top level example group, while a before(:suite) code block is only called once. Here’s an example: RSpec.configure do |config| config.before(:all) { puts ‘Before :all’ } config.after(:all) { puts ‘After :all’ } config.before(:suite) { puts ‘Before :suite’ } config.after(:suite) { puts ‘After … Read more