summaryrefslogtreecommitdiff
path: root/spec/tasks
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-09-04 11:57:25 +1000
committerAsh McKenzie <amckenzie@gitlab.com>2019-09-05 12:54:03 +1000
commit124bad7bd88e7c329583ec3757eb0ba5fcec66e6 (patch)
treed6ed77fd8739381bf17ce9b0f7774ec78f3c0561 /spec/tasks
parent0fca70a40f5067b333ff62e556754b9dd04e26f9 (diff)
downloadgitlab-ce-124bad7bd88e7c329583ec3757eb0ba5fcec66e6.tar.gz
RailsHelpers.stub_rails_env takes care of stubbing Rails.env
Diffstat (limited to 'spec/tasks')
-rw-r--r--spec/tasks/gitlab/gitaly_rake_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/tasks/gitlab/gitaly_rake_spec.rb b/spec/tasks/gitlab/gitaly_rake_spec.rb
index e6e4d9504d9..2f3fc7839c1 100644
--- a/spec/tasks/gitlab/gitaly_rake_spec.rb
+++ b/spec/tasks/gitlab/gitaly_rake_spec.rb
@@ -57,7 +57,7 @@ describe 'gitlab:gitaly namespace rake task' do
stub_env('CI', false)
FileUtils.mkdir_p(clone_path)
expect(Dir).to receive(:chdir).with(clone_path).and_call_original
- allow(Rails.env).to receive(:test?).and_return(false)
+ stub_rails_env('development')
end
context 'gmake is available' do
@@ -93,7 +93,7 @@ describe 'gitlab:gitaly namespace rake task' do
end
before do
- allow(Rails.env).to receive(:test?).and_return(true)
+ stub_rails_env('test')
end
it 'calls make in the gitaly directory with --no-deployment flag for bundle' do