@@ -23,6 +24,8 @@ class RegistrationsController < Devise::RegistrationsController
end
defcreate
track_experiment_event(:signup_flow,'end')unlessexperiment_enabled?(:signup_flow)# We want this event to be tracked when the user is _in_ the control group
accept_pending_invitations
superdo|new_user|
...
...
@@ -61,6 +64,7 @@ class RegistrationsController < Devise::RegistrationsController
@@ -47,36 +65,123 @@ describe Gitlab::Experimentation::ControllerConcern, type: :controller do
get:index
end
it'calls Gitlab::Experimentation.enabled? with the name of the experiment and an experimentation_subject_index of the modulo 100 of the hex value of the uuid'do
it'calls Gitlab::Experimentation.enabled_for_user? with the name of the experiment and an experimentation_subject_index of the modulo 100 of the hex value of the uuid'do