We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b6c579 commit b15d50cCopy full SHA for b15d50c
spec/models/better_together/event_spec.rb
@@ -270,6 +270,7 @@ module BetterTogether # rubocop:todo Metrics/ModuleLength
270
271
describe 'event hosts' do
272
it 'defaults its host to its creator' do
273
+ event.valid? # Trigger validation which runs set_host callback
274
expect(event.event_hosts.map(&:host)).to include(event.creator)
275
end
276
0 commit comments