Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-03-16 21:18:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-16 21:18:33 +0300
commitf64a639bcfa1fc2bc89ca7db268f594306edfd7c (patch)
treea2c3c2ebcc3b45e596949db485d6ed18ffaacfa1 /spec/controllers/root_controller_spec.rb
parentbfbc3e0d6583ea1a91f627528bedc3d65ba4b10f (diff)
Add latest changes from gitlab-org/gitlab@13-10-stable-eev13.10.0-rc40
Diffstat (limited to 'spec/controllers/root_controller_spec.rb')
-rw-r--r--spec/controllers/root_controller_spec.rb22
1 files changed, 15 insertions, 7 deletions
diff --git a/spec/controllers/root_controller_spec.rb b/spec/controllers/root_controller_spec.rb
index 85f9ea66c5f..49841aa61d7 100644
--- a/spec/controllers/root_controller_spec.rb
+++ b/spec/controllers/root_controller_spec.rb
@@ -68,6 +68,18 @@ RSpec.describe RootController do
end
end
+ context 'who has customized their dashboard setting for followed user activities' do
+ before do
+ user.dashboard = 'followed_user_activity'
+ end
+
+ it 'redirects to the activity list' do
+ get :index
+
+ expect(response).to redirect_to activity_dashboard_path(filter: 'followed')
+ end
+ end
+
context 'who has customized their dashboard setting for groups' do
before do
user.dashboard = 'groups'
@@ -123,11 +135,7 @@ RSpec.describe RootController do
expect(response).to render_template 'dashboard/projects/index'
end
- context 'when experiment is enabled' do
- before do
- stub_experiment_for_subject(customize_homepage: true)
- end
-
+ context 'when customize_homepage is enabled' do
it 'renders the default dashboard' do
get :index
@@ -135,9 +143,9 @@ RSpec.describe RootController do
end
end
- context 'when experiment not enabled' do
+ context 'when customize_homepage is not enabled' do
before do
- stub_experiment(customize_homepage: false)
+ stub_feature_flags(customize_homepage: false)
end
it 'renders the default dashboard' do