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
0ab9571a
Commit
0ab9571a
authored
Mar 04, 2016
by
Yorick Peterse
Committed by
Robert Speicher
Mar 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few spec typos
parent
9e00a237
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
spec/models/concerns/issuable_spec.rb
spec/models/concerns/issuable_spec.rb
+3
-3
spec/models/user_spec.rb
spec/models/user_spec.rb
+3
-3
No files found.
spec/models/concerns/issuable_spec.rb
View file @
0ab9571a
...
@@ -32,7 +32,7 @@ describe Issue, "Issuable" do
...
@@ -32,7 +32,7 @@ describe Issue, "Issuable" do
describe
".search"
do
describe
".search"
do
let!
(
:searchable_issue
)
{
create
(
:issue
,
title:
"Searchable issue"
)
}
let!
(
:searchable_issue
)
{
create
(
:issue
,
title:
"Searchable issue"
)
}
it
'returns not
ch
es with a matching title'
do
it
'returns notes with a matching title'
do
expect
(
described_class
.
search
(
searchable_issue
.
title
)).
expect
(
described_class
.
search
(
searchable_issue
.
title
)).
to
eq
([
searchable_issue
])
to
eq
([
searchable_issue
])
end
end
...
@@ -52,7 +52,7 @@ describe Issue, "Issuable" do
...
@@ -52,7 +52,7 @@ describe Issue, "Issuable" do
create
(
:issue
,
title:
"Searchable issue"
,
description:
'kittens'
)
create
(
:issue
,
title:
"Searchable issue"
,
description:
'kittens'
)
end
end
it
'returns not
ch
es with a matching title'
do
it
'returns notes with a matching title'
do
expect
(
described_class
.
full_search
(
searchable_issue
.
title
)).
expect
(
described_class
.
full_search
(
searchable_issue
.
title
)).
to
eq
([
searchable_issue
])
to
eq
([
searchable_issue
])
end
end
...
@@ -66,7 +66,7 @@ describe Issue, "Issuable" do
...
@@ -66,7 +66,7 @@ describe Issue, "Issuable" do
to
eq
([
searchable_issue
])
to
eq
([
searchable_issue
])
end
end
it
'returns not
ch
es with a matching description'
do
it
'returns notes with a matching description'
do
expect
(
described_class
.
full_search
(
searchable_issue
.
description
)).
expect
(
described_class
.
full_search
(
searchable_issue
.
description
)).
to
eq
([
searchable_issue
])
to
eq
([
searchable_issue
])
end
end
...
...
spec/models/user_spec.rb
View file @
0ab9571a
...
@@ -474,7 +474,7 @@ describe User, models: true do
...
@@ -474,7 +474,7 @@ describe User, models: true do
expect
(
described_class
.
search
(
user
.
name
[
0
..
2
])).
to
eq
([
user
])
expect
(
described_class
.
search
(
user
.
name
[
0
..
2
])).
to
eq
([
user
])
end
end
it
'returns users with a matching name regard
ing
of the casing'
do
it
'returns users with a matching name regard
less
of the casing'
do
expect
(
described_class
.
search
(
user
.
name
.
upcase
)).
to
eq
([
user
])
expect
(
described_class
.
search
(
user
.
name
.
upcase
)).
to
eq
([
user
])
end
end
...
@@ -486,7 +486,7 @@ describe User, models: true do
...
@@ -486,7 +486,7 @@ describe User, models: true do
expect
(
described_class
.
search
(
user
.
email
[
0
..
2
])).
to
eq
([
user
])
expect
(
described_class
.
search
(
user
.
email
[
0
..
2
])).
to
eq
([
user
])
end
end
it
'returns users with a matching Email regard
ing
of the casing'
do
it
'returns users with a matching Email regard
less
of the casing'
do
expect
(
described_class
.
search
(
user
.
email
.
upcase
)).
to
eq
([
user
])
expect
(
described_class
.
search
(
user
.
email
.
upcase
)).
to
eq
([
user
])
end
end
...
@@ -498,7 +498,7 @@ describe User, models: true do
...
@@ -498,7 +498,7 @@ describe User, models: true do
expect
(
described_class
.
search
(
user
.
username
[
0
..
2
])).
to
eq
([
user
])
expect
(
described_class
.
search
(
user
.
username
[
0
..
2
])).
to
eq
([
user
])
end
end
it
'returns users with a matching username regard
ing
of the casing'
do
it
'returns users with a matching username regard
less
of the casing'
do
expect
(
described_class
.
search
(
user
.
username
.
upcase
)).
to
eq
([
user
])
expect
(
described_class
.
search
(
user
.
username
.
upcase
)).
to
eq
([
user
])
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