Test stage.teams returning [] on empty stage

This commit is contained in:
Daniel Schädler 2019-06-18 15:44:32 +02:00
parent b28561043e
commit 8873e7a95b
1 changed files with 6 additions and 0 deletions

View File

@ -39,6 +39,12 @@ RSpec.describe Stage, type: :model do
expect(teams).to match_array(@teams)
end
end
context 'empty stage' do
it 'returns an empty Array' do
expect(create(:stage).teams).to match_array([])
end
end
end
describe '#over?' do