turniere-backend/spec/models/match_score_spec.rb

15 lines
286 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe MatchScore, type: :model do
describe 'association' do
it { should belong_to :match }
it { should belong_to :team }
end
it 'has a valid factory' do
expect(build(:match_score)).to be_valid
end
end