Test stage.teams returning [] on empty stage
This commit is contained in:
parent
b28561043e
commit
8873e7a95b
|
|
@ -39,6 +39,12 @@ RSpec.describe Stage, type: :model do
|
||||||
expect(teams).to match_array(@teams)
|
expect(teams).to match_array(@teams)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context 'empty stage' do
|
||||||
|
it 'returns an empty Array' do
|
||||||
|
expect(create(:stage).teams).to match_array([])
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#over?' do
|
describe '#over?' do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue