Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
f9dbf0e2d1f0
Commit
0ab9571a
authored
Mar 04, 2016
by
Yorick Peterse
Committed by
Robert Speicher
Mar 11, 2016
Browse files
Fixed a few spec typos
parent
97208b7235c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
spec/models/concerns/issuable_spec.rb
View file @
f9dbf0e2
...
...
@@ -32,7 +32,7 @@
describe
".search"
do
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
)).
to
eq
([
searchable_issue
])
end
...
...
@@ -52,7 +52,7 @@
create
(
:issue
,
title:
"Searchable issue"
,
description:
'kittens'
)
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
)).
to
eq
([
searchable_issue
])
end
...
...
@@ -66,7 +66,7 @@
to
eq
([
searchable_issue
])
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
)).
to
eq
([
searchable_issue
])
end
...
...
spec/models/user_spec.rb
View file @
f9dbf0e2
...
...
@@ -474,7 +474,7 @@
expect
(
described_class
.
search
(
user
.
name
[
0
..
2
])).
to
eq
([
user
])
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
])
end
...
...
@@ -486,7 +486,7 @@
expect
(
described_class
.
search
(
user
.
email
[
0
..
2
])).
to
eq
([
user
])
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
])
end
...
...
@@ -498,7 +498,7 @@
expect
(
described_class
.
search
(
user
.
username
[
0
..
2
])).
to
eq
([
user
])
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
])
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