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-04-01 18:08:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-04-01 18:08:54 +0300
commit05003789d95f2f5d28a2f018d9e1b51ad7ab983c (patch)
tree83d44f269e744b49c24b138ea86d134ecb254539 /spec/tasks
parent50d66f5ece57dcfbe074d97703691a8d3c38f4ac (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tasks')
-rw-r--r--spec/tasks/gitlab/gitaly_rake_spec.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/spec/tasks/gitlab/gitaly_rake_spec.rb b/spec/tasks/gitlab/gitaly_rake_spec.rb
index efc983d526f..1b38580f484 100644
--- a/spec/tasks/gitlab/gitaly_rake_spec.rb
+++ b/spec/tasks/gitlab/gitaly_rake_spec.rb
@@ -41,6 +41,7 @@ RSpec.describe 'gitlab:gitaly namespace rake task' do
describe 'checkout or clone' do
before do
+ stub_env('CI', false)
expect(Dir).to receive(:chdir).with(clone_path)
end
@@ -86,18 +87,14 @@ RSpec.describe 'gitlab:gitaly namespace rake task' do
end
context 'when Rails.env is test' do
- let(:command) do
- %W[make
- BUNDLE_FLAGS=--no-deployment
- GEM_HOME=#{Bundler.bundle_path}]
- end
+ let(:command) { %w[make] }
before do
stub_rails_env('test')
end
- it 'calls make in the gitaly directory with --no-deployment flag for bundle' do
- expect(Gitlab::Popen).to receive(:popen).with(command, nil, { "BUNDLE_GEMFILE" => nil, "RUBYOPT" => nil }).and_return(true)
+ it 'calls make in the gitaly directory with BUNDLE_DEPLOYMENT and GEM_HOME variables' do
+ expect(Gitlab::Popen).to receive(:popen).with(command, nil, { "BUNDLE_GEMFILE" => nil, "RUBYOPT" => nil, "BUNDLE_DEPLOYMENT" => 'false', "GEM_HOME" => Bundler.bundle_path.to_s }).and_return(true)
subject
end