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
0bd54eb4
Commit
0bd54eb4
authored
Jul 17, 2019
by
George Koltsov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MembersMapper#ensure_default_user! spec
parent
8e6af8c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
spec/lib/gitlab/import_export/members_mapper_spec.rb
spec/lib/gitlab/import_export/members_mapper_spec.rb
+10
-0
No files found.
spec/lib/gitlab/import_export/members_mapper_spec.rb
View file @
0bd54eb4
...
...
@@ -154,5 +154,15 @@ describe Gitlab::ImportExport::MembersMapper do
expect
(
members_mapper
.
map
[
exported_user_id
]).
to
eq
(
user2
.
id
)
end
end
context
'when importer mapping fails'
do
let
(
:exception_message
)
{
'Something went wrong'
}
it
'includes importer specific error message'
do
expect
(
ProjectMember
).
to
receive
(
:create!
).
and_raise
(
StandardError
.
new
(
exception_message
))
expect
{
members_mapper
.
map
}.
to
raise_error
(
StandardError
,
"Error adding importer user to project members.
#{
exception_message
}
"
)
end
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