Add missing factory specs
This commit is contained in:
parent
3fc344249d
commit
22f0204f29
|
|
@ -45,5 +45,7 @@ RSpec.describe Match, type: :model do
|
||||||
|
|
||||||
it 'has a valid factory' do
|
it 'has a valid factory' do
|
||||||
expect(build(:match)).to be_valid
|
expect(build(:match)).to be_valid
|
||||||
|
expect(build(:running_playoff_match)).to be_valid
|
||||||
|
expect(build(:group_match)).to be_valid
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,6 @@ RSpec.describe Stage, type: :model do
|
||||||
|
|
||||||
it 'has a valid factory' do
|
it 'has a valid factory' do
|
||||||
expect(build(:stage)).to be_valid
|
expect(build(:stage)).to be_valid
|
||||||
|
expect(build(:group_stage)).to be_valid
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -15,5 +15,6 @@ RSpec.describe Team, type: :model do
|
||||||
|
|
||||||
it 'has a valid factory' do
|
it 'has a valid factory' do
|
||||||
expect(build(:team)).to be_valid
|
expect(build(:team)).to be_valid
|
||||||
|
expect(build(:detached_team)).to be_valid
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -33,5 +33,7 @@ RSpec.describe Tournament, type: :model do
|
||||||
|
|
||||||
it 'has valid factory' do
|
it 'has valid factory' do
|
||||||
expect(build(:tournament)).to be_valid
|
expect(build(:tournament)).to be_valid
|
||||||
|
expect(build(:stage_tournament)).to be_valid
|
||||||
|
expect(build(:group_stage_tournament)).to be_valid
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue