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

15 lines
313 B
Ruby
Raw Normal View History

# 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