From 9a41b19e976437dc7ecf5f87654aee9c313e1f52 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sun, 25 Nov 2018 20:06:06 +0100 Subject: [PATCH] Add team factory without parent tournament --- spec/factories/teams.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/factories/teams.rb b/spec/factories/teams.rb index 9836e0f..ba32f6d 100644 --- a/spec/factories/teams.rb +++ b/spec/factories/teams.rb @@ -5,4 +5,8 @@ FactoryBot.define do name { Faker::Dog.name } tournament end + + factory :detached_team, class: Team do + name { Faker::Dog.name } + end end