Add spec for GroupScore model
This commit is contained in:
parent
556f326acd
commit
b72bc69b81
|
|
@ -0,0 +1,9 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe GroupScore, type: :model do
|
||||||
|
describe 'association' do
|
||||||
|
it { should belong_to :team }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -9,5 +9,6 @@ RSpec.describe Team, type: :model do
|
||||||
|
|
||||||
describe 'association' do
|
describe 'association' do
|
||||||
it { should belong_to :tournament }
|
it { should belong_to :tournament }
|
||||||
|
it { should have_one :group_score }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue