gitlab-org--gitlab-foss/spec/models/experiment_user_spec.rb

14 lines
313 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe ExperimentUser do
describe 'Associations' do
it { is_expected.to belong_to(:experiment) }
it { is_expected.to belong_to(:user) }
end
describe 'Validations' do
it { is_expected.to validate_presence_of(:group_type) }
end
end