Add spec for GroupScore model

This commit is contained in:
Thor77 2018-11-13 23:12:48 +01:00
parent 556f326acd
commit b72bc69b81
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -9,5 +9,6 @@ RSpec.describe Team, type: :model do
describe 'association' do
it { should belong_to :tournament }
it { should have_one :group_score }
end
end