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
19e70e3f
authored
Oct 10, 2017
by
Rémy Coutable
Committed by
Winnie Hellmann
Oct 21, 2017
Browse files
Stub ENV in the Gitaly task spec file
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
02f6647dee32
Changes
1
Show whitespace changes
Inline
Side-by-side
spec/tasks/gitlab/gitaly_rake_spec.rb
View file @
e9e92765
...
...
@@ -43,15 +43,8 @@
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
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
Markdown
is supported
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