Add factories for groups, matches, scores & stages

This commit is contained in:
Thor77 2018-11-17 18:27:25 +01:00
parent 1ec2fa6cf5
commit def5de2a7e
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
4 changed files with 26 additions and 0 deletions

7
spec/factories/groups.rb Normal file
View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
FactoryBot.define do
factory :group do
number { 0 }
end
end

View File

@ -0,0 +1,6 @@
# frozen_string_literal: true
FactoryBot.define do
factory :match do
end
end

7
spec/factories/scores.rb Normal file
View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
FactoryBot.define do
factory :score do
score { 0 }
end
end

6
spec/factories/stages.rb Normal file
View File

@ -0,0 +1,6 @@
# frozen_string_literal: true
FactoryBot.define do
factory :stage do
end
end