summaryrefslogtreecommitdiff
path: root/spec/controllers/repositories/git_http_controller_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-03-16 18:18:33 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-16 18:18:33 +0000
commitf64a639bcfa1fc2bc89ca7db268f594306edfd7c (patch)
treea2c3c2ebcc3b45e596949db485d6ed18ffaacfa1 /spec/controllers/repositories/git_http_controller_spec.rb
parentbfbc3e0d6583ea1a91f627528bedc3d65ba4b10f (diff)
downloadgitlab-ce-f64a639bcfa1fc2bc89ca7db268f594306edfd7c.tar.gz
Add latest changes from gitlab-org/gitlab@13-10-stable-eev13.10.0-rc40
Diffstat (limited to 'spec/controllers/repositories/git_http_controller_spec.rb')
-rw-r--r--spec/controllers/repositories/git_http_controller_spec.rb19
1 files changed, 8 insertions, 11 deletions
diff --git a/spec/controllers/repositories/git_http_controller_spec.rb b/spec/controllers/repositories/git_http_controller_spec.rb
index d21f602f90c..4eede594bb9 100644
--- a/spec/controllers/repositories/git_http_controller_spec.rb
+++ b/spec/controllers/repositories/git_http_controller_spec.rb
@@ -54,14 +54,17 @@ RSpec.describe Repositories::GitHttpController do
}.from(0).to(1)
end
- it_behaves_like 'records an onboarding progress action', :git_read do
- let(:namespace) { project.namespace }
-
- subject { send_request }
+ describe 'recording the onboarding progress', :sidekiq_inline do
+ let_it_be(:namespace) { project.namespace }
before do
- stub_feature_flags(disable_git_http_fetch_writes: false)
+ OnboardingProgress.onboard(namespace)
+ send_request
end
+
+ subject { OnboardingProgress.completed?(namespace, :git_pull) }
+
+ it { is_expected.to be(true) }
end
context 'when disable_git_http_fetch_writes is enabled' do
@@ -75,12 +78,6 @@ RSpec.describe Repositories::GitHttpController do
send_request
end
-
- it 'does not record onboarding progress' do
- expect(OnboardingProgressService).not_to receive(:new)
-
- send_request
- end
end
end
end