Skip to content

Commit 988b333

Browse files
committed
test: remove redundant before/after blocks
The enable! around hook handles cleanup automatically.
1 parent a64aeb9 commit 988b333

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

spec/lib/code_teams/testing_spec.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@
33
CodeTeams::Testing.enable!
44

55
RSpec.describe CodeTeams::Testing do
6-
before do
7-
CodeTeams.bust_caches!
8-
described_class.reset!
9-
end
10-
11-
after do
12-
CodeTeams.bust_caches!
13-
described_class.reset!
14-
end
15-
166
describe '.create_code_team' do
177
it 'adds the team to CodeTeams.all and CodeTeams.find' do
188
team = described_class.create_code_team({ name: 'Temp Team', extra_data: { foo: { bar: 1 } } })

0 commit comments

Comments
 (0)