Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-shell
Commits
69d39094
Commit
69d39094
authored
Aug 14, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Override `ROOT_PATH` in specs in a less insane way
parent
b9d086e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
lib/gitlab_init.rb
lib/gitlab_init.rb
+1
-1
spec/spec_helper.rb
spec/spec_helper.rb
+6
-2
No files found.
lib/gitlab_init.rb
View file @
69d39094
ROOT_PATH
=
File
.
expand_path
(
File
.
join
(
File
.
dirname
(
__FILE__
),
".."
)
)
ROOT_PATH
=
File
.
expand_path
(
'..'
,
__dir__
)
require_relative
'gitlab_config'
spec/spec_helper.rb
View file @
69d39094
ROOT_PATH
=
File
.
expand_path
(
File
.
join
(
File
.
dirname
(
__FILE__
),
".."
))
require
'simplecov'
SimpleCov
.
start
...
...
@@ -13,6 +11,12 @@ VCR.configure do |c|
c
.
configure_rspec_metadata!
end
RSpec
.
configure
do
|
config
|
config
.
before
(
:each
)
do
stub_const
(
'ROOT_PATH'
,
File
.
expand_path
(
'..'
,
__dir__
))
end
end
# like WEBrick::HTTPServer, but listens on UNIX socket
class
HTTPUNIXServer
<
WEBrick
::
HTTPServer
def
listen
(
address
,
port
)
...
...
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