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
458f54dc
Commit
458f54dc
authored
Dec 18, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve merge conflicts in spec/lib/gitlab/shell_spec.rb
parent
f615e5bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
65 deletions
+0
-65
spec/lib/gitlab/shell_spec.rb
spec/lib/gitlab/shell_spec.rb
+0
-65
No files found.
spec/lib/gitlab/shell_spec.rb
View file @
458f54dc
...
...
@@ -51,7 +51,6 @@ describe Gitlab::Shell do
end
end
<<<<<<<
HEAD
describe
'#add_key'
do
context
'when authorized_keys_enabled is true'
do
it
'removes trailing garbage'
do
...
...
@@ -357,8 +356,6 @@ describe Gitlab::Shell do
end
end
=======
>>>>>>>
upstream
/
master
describe
Gitlab
::
Shell
::
KeyAdder
do
describe
'#add_key'
do
it
'removes trailing garbage'
do
...
...
@@ -649,7 +646,6 @@ describe Gitlab::Shell do
it
'raises an exception when the command fails'
do
allow
(
gitlab_projects
).
to
receive
(
:output
)
{
'error'
}
expect
(
gitlab_projects
).
to
receive
(
:import_project
)
{
false
}
<<<<<<<
HEAD
expect
do
gitlab_shell
.
import_repository
(
project
.
repository_storage_path
,
project
.
disk_path
,
import_url
)
...
...
@@ -709,67 +705,6 @@ describe Gitlab::Shell do
.
with
(
'downstream-remote'
,
[
'master'
])
.
and_return
(
false
)
=======
expect
do
gitlab_shell
.
import_repository
(
project
.
repository_storage_path
,
project
.
disk_path
,
import_url
)
end
.
to
raise_error
(
Gitlab
::
Shell
::
Error
,
"error"
)
end
end
describe
'#push_remote_branches'
do
subject
(
:result
)
do
gitlab_shell
.
push_remote_branches
(
project
.
repository_storage_path
,
project
.
disk_path
,
'downstream-remote'
,
[
'master'
]
)
end
it
'executes the command'
do
expect
(
gitlab_projects
).
to
receive
(
:push_branches
)
.
with
(
'downstream-remote'
,
timeout
,
true
,
[
'master'
])
.
and_return
(
true
)
is_expected
.
to
be_truthy
end
it
'fails to execute the command'
do
allow
(
gitlab_projects
).
to
receive
(
:output
)
{
'error'
}
expect
(
gitlab_projects
).
to
receive
(
:push_branches
)
.
with
(
'downstream-remote'
,
timeout
,
true
,
[
'master'
])
.
and_return
(
false
)
expect
{
result
}.
to
raise_error
(
Gitlab
::
Shell
::
Error
,
'error'
)
end
end
describe
'#delete_remote_branches'
do
subject
(
:result
)
do
gitlab_shell
.
delete_remote_branches
(
project
.
repository_storage_path
,
project
.
disk_path
,
'downstream-remote'
,
[
'master'
]
)
end
it
'executes the command'
do
expect
(
gitlab_projects
).
to
receive
(
:delete_remote_branches
)
.
with
(
'downstream-remote'
,
[
'master'
])
.
and_return
(
true
)
is_expected
.
to
be_truthy
end
it
'fails to execute the command'
do
allow
(
gitlab_projects
).
to
receive
(
:output
)
{
'error'
}
expect
(
gitlab_projects
).
to
receive
(
:delete_remote_branches
)
.
with
(
'downstream-remote'
,
[
'master'
])
.
and_return
(
false
)
>>>>>>>
upstream
/
master
expect
{
result
}.
to
raise_error
(
Gitlab
::
Shell
::
Error
,
'error'
)
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