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

Rename Shared to GroupTypes

parent 0afeaa68
# frozen_string_literal: true # frozen_string_literal: true
class Experiment < ApplicationRecord class Experiment < ApplicationRecord
include ::Gitlab::Experimentation::Shared include ::Gitlab::Experimentation::GroupTypes
has_many :experiment_users has_many :experiment_users
has_many :users, through: :experiment_users has_many :users, through: :experiment_users
......
# frozen_string_literal: true # frozen_string_literal: true
class ExperimentUser < ApplicationRecord class ExperimentUser < ApplicationRecord
include ::Gitlab::Experimentation::Shared include ::Gitlab::Experimentation::GroupTypes
belongs_to :experiment belongs_to :experiment
belongs_to :user belongs_to :user
......
...@@ -97,7 +97,7 @@ module Gitlab ...@@ -97,7 +97,7 @@ module Gitlab
# of the experimental group. # of the experimental group.
# #
module ControllerConcern module ControllerConcern
include ::Gitlab::Experimentation::Shared include ::Gitlab::Experimentation::GroupTypes
extend ActiveSupport::Concern extend ActiveSupport::Concern
included do included do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
module Gitlab module Gitlab
module Experimentation module Experimentation
module Shared module GroupTypes
GROUP_CONTROL = :control GROUP_CONTROL = :control
GROUP_EXPERIMENTAL = :experimental GROUP_EXPERIMENTAL = :experimental
end end
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe Gitlab::Experimentation::Shared do RSpec.describe Gitlab::Experimentation::GroupTypes do
it 'defines a GROUP_CONTROL constant' do it 'defines a GROUP_CONTROL constant' do
expect(described_class.const_defined?(:GROUP_CONTROL)).to be_truthy expect(described_class.const_defined?(:GROUP_CONTROL)).to be_truthy
end 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