Fix before/after with no arg (#2042)

No arg defaults to :each not :all 


https://www.rubydoc.info/github/rspec/rspec-core/RSpec%2FCore%2FHooks:before
This commit is contained in:
Rob Barreca 2024-03-28 21:55:47 -10:00 committed by GitHub
parent 758a48d9c5
commit d62bbeb024
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -49,11 +49,11 @@ before :each do
# before all tests
end
before do
before :all do
# before this suite
end
after do
after : all do
# after this suite
end
```