Skip to content

Commit e2ea8af

Browse files
committed
refactor: Organize event host spec to improve clarity and structure
1 parent 14860ad commit e2ea8af

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

spec/models/better_together/event_spec.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,11 @@ module BetterTogether # rubocop:todo Metrics/ModuleLength
268268
end
269269
end
270270

271-
it 'defaults its host to its creator' do
272-
expect(event.event_hosts.map(&:host)).to include(event.creator)
271+
describe 'event hosts' do
272+
it 'defaults its host to its creator' do
273+
expect(event.event_hosts.map(&:host)).to include(event.creator)
274+
end
275+
end
273276
end
274277

275278
describe 'delegation' do

0 commit comments

Comments
 (0)