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
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
Tatuya Kamada
gitlab-ce
Commits
ec660a6b
Commit
ec660a6b
authored
8 years ago
by
George Andrinopoulos
Committed by
Rémy Coutable
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve transient failure in spec/models/user_spec.rb
parent
7e7409c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
changelogs/unreleased/29328-fix-transient-failure-in-model-user-spec.yml
...leased/29328-fix-transient-failure-in-model-user-spec.yml
+4
-0
spec/models/user_spec.rb
spec/models/user_spec.rb
+3
-2
No files found.
changelogs/unreleased/29328-fix-transient-failure-in-model-user-spec.yml
0 → 100644
View file @
ec660a6b
---
title
:
Add custom attributes in factories
merge_request
:
9892
author
:
George Andrinopoulos
This diff is collapsed.
Click to expand it.
spec/models/user_spec.rb
View file @
ec660a6b
...
...
@@ -713,8 +713,9 @@ describe User, models: true do
describe
'.search_with_secondary_emails'
do
delegate
:search_with_secondary_emails
,
to: :described_class
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:email
)
{
create
(
:email
)
}
let!
(
:user
)
{
create
(
:user
,
name:
'John Doe'
,
username:
'john.doe'
,
email:
'john.doe@example.com'
)
}
let!
(
:another_user
)
{
create
(
:user
,
name:
'Albert Smith'
,
username:
'albert.smith'
,
email:
'albert.smith@example.com'
)
}
let!
(
:email
)
{
create
(
:email
,
user:
another_user
)
}
it
'returns users with a matching name'
do
expect
(
search_with_secondary_emails
(
user
.
name
)).
to
eq
([
user
])
...
...
This diff is collapsed.
Click to expand it.
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