Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
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-ce
Commits
5292d833
Commit
5292d833
authored
Sep 05, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts in `utils` and `utils_spec`
parent
403a4d7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
lib/gitlab/utils.rb
lib/gitlab/utils.rb
+4
-5
spec/lib/gitlab/utils_spec.rb
spec/lib/gitlab/utils_spec.rb
+8
-9
No files found.
lib/gitlab/utils.rb
View file @
5292d833
...
...
@@ -43,7 +43,10 @@ module Gitlab
end
end
<<<<<<<
HEAD
def
random_string
Random
.
rand
(
Float
::
MAX
.
to_i
).
to_s
(
36
)
end
# EE below
def
try_megabytes_to_bytes
(
size
)
Integer
(
size
).
megabytes
...
...
@@ -66,10 +69,6 @@ module Gitlab
end
nil
=======
def
random_string
Random
.
rand
(
Float
::
MAX
.
to_i
).
to_s
(
36
)
>>>>>>>
ce
-
com
/
master
end
end
end
spec/lib/gitlab/utils_spec.rb
View file @
5292d833
...
...
@@ -17,9 +17,6 @@ describe Gitlab::Utils do
end
end
# EE
delegate
:which
,
to: :described_class
describe
'.to_boolean'
do
it
'accepts booleans'
do
expect
(
to_boolean
(
true
)).
to
be
(
true
)
...
...
@@ -57,18 +54,20 @@ describe Gitlab::Utils do
end
end
<<<<<<<
HEAD
describe
'.random_string'
do
it
'generates a string'
do
expect
(
random_string
).
to
be_kind_of
(
String
)
end
end
# EE
delegate
:which
,
to: :described_class
describe
'.which'
do
it
'finds the full path to an executable binary'
do
expect
(
File
).
to
receive
(
:executable?
).
with
(
'/bin/sh'
).
and_return
(
true
)
expect
(
which
(
'sh'
,
'PATH'
=>
'/bin'
)).
to
eq
(
'/bin/sh'
)
=======
describe
'.random_string'
do
it
'generates a string'
do
expect
(
random_string
).
to
be_kind_of
(
String
)
>>>>>>>
ce
-
com
/
master
end
end
end
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