summaryrefslogtreecommitdiff
path: root/spec/models/experiment_user_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/experiment_user_spec.rb')
-rw-r--r--spec/models/experiment_user_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/models/experiment_user_spec.rb b/spec/models/experiment_user_spec.rb
new file mode 100644
index 00000000000..9201529b145
--- /dev/null
+++ b/spec/models/experiment_user_spec.rb
@@ -0,0 +1,14 @@
+# 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