diff options
author | Stan Hu <stanhu@gmail.com> | 2017-12-25 05:33:32 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-12-25 05:33:32 -0800 |
commit | b6c711fd38f65d78bbd02ad9ad05f22bcb5033c5 (patch) | |
tree | b187cef0f1aad1341f8a52fe66c6b6fe6156bef7 /spec | |
parent | a83c41f6c6e0035c40916b3cbdda7fdd4f7e925f (diff) | |
download | gitlab-ce-b6c711fd38f65d78bbd02ad9ad05f22bcb5033c5.tar.gz |
Disable redirect messages for anonymous clonessh-handle-anonymous-clones-project-moved
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/checks/project_moved_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/lib/gitlab/checks/project_moved_spec.rb b/spec/lib/gitlab/checks/project_moved_spec.rb index 3d72e78332d..f90c2d6aded 100644 --- a/spec/lib/gitlab/checks/project_moved_spec.rb +++ b/spec/lib/gitlab/checks/project_moved_spec.rb @@ -39,8 +39,7 @@ describe Gitlab::Checks::ProjectMoved, :clean_gitlab_redis_shared_state do it 'should handle anonymous clones' do project_moved = described_class.new(project, nil, 'foo/bar', 'http') - expect(project_moved.add_redirect_message).to eq("OK") - expect(Gitlab::Redis::SharedState.with { |redis| redis.get("redirect_namespace:anonymous:#{project.id}") }).not_to be_nil + expect(project_moved.add_redirect_message).to eq(nil) end end |