Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
e9e9276543e4
Commit
e9e92765
authored
Oct 10, 2017
by
Rémy Coutable
Browse files
Stub ENV in the Gitaly task spec file
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
02f6647dee32
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/tasks/gitlab/gitaly_rake_spec.rb
View file @
e9e92765
...
...
@@ -43,12 +43,4 @@
describe
'gmake/make'
do
let
(
:command_preamble
)
{
%w[/usr/bin/env -u RUBYOPT -u BUNDLE_GEMFILE]
}
before
(
:all
)
do
@old_env_ci
=
ENV
.
delete
(
'CI'
)
end
after
(
:all
)
do
ENV
[
'CI'
]
=
@old_env_ci
if
@old_env_ci
end
before
do
...
...
@@ -54,4 +46,5 @@
before
do
stub_env
(
'CI'
,
false
)
FileUtils
.
mkdir_p
(
clone_path
)
expect
(
Dir
).
to
receive
(
:chdir
).
with
(
clone_path
).
and_call_original
allow
(
Bundler
).
to
receive
(
:bundle_path
).
and_return
(
'/fake/bundle_path'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment