Commit 97c97d9d authored by Dallas Reedy's avatar Dallas Reedy

Rename Shared to GroupTypes

parent 0afeaa68
# frozen_string_literal: true
class Experiment < ApplicationRecord
include ::Gitlab::Experimentation::Shared
include ::Gitlab::Experimentation::GroupTypes
has_many :experiment_users
has_many :users, through: :experiment_users
......
# frozen_string_literal: true
class ExperimentUser < ApplicationRecord
include ::Gitlab::Experimentation::Shared
include ::Gitlab::Experimentation::GroupTypes
belongs_to :experiment
belongs_to :user
......
......@@ -97,7 +97,7 @@ module Gitlab
# of the experimental group.
#
module ControllerConcern
include ::Gitlab::Experimentation::Shared
include ::Gitlab::Experimentation::GroupTypes
extend ActiveSupport::Concern
included do
......
......@@ -2,7 +2,7 @@
module Gitlab
module Experimentation
module Shared
module GroupTypes
GROUP_CONTROL = :control
GROUP_EXPERIMENTAL = :experimental
end
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
RSpec.describe Gitlab::Experimentation::Shared do
RSpec.describe Gitlab::Experimentation::GroupTypes do
it 'defines a GROUP_CONTROL constant' do
expect(described_class.const_defined?(:GROUP_CONTROL)).to be_truthy
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment