Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
be16a89a88af
Commit
19c7133d
authored
Oct 30, 2018
by
George Tsiolis
Browse files
Fix typos in comments and specs
parent
0360938132ae
Changes
111
Hide whitespace changes
Inline
Side-by-side
spec/services/clusters/gcp/fetch_operation_service_spec.rb
View file @
be16a89a
...
...
@@ -24,7 +24,7 @@
end
end
context
'when suceeded to fetch operation'
do
context
'when suc
c
eeded to fetch operation'
do
before
do
stub_cloud_platform_get_zone_operation
(
gcp_project_id
,
zone
,
operation_id
)
end
...
...
spec/services/clusters/gcp/finalize_creation_service_spec.rb
View file @
be16a89a
...
...
@@ -30,7 +30,7 @@
end
end
context
'when suceeded to fetch gke cluster info'
do
context
'when suc
c
eeded to fetch gke cluster info'
do
let
(
:endpoint
)
{
'111.111.111.111'
}
let
(
:api_url
)
{
'https://'
+
endpoint
}
let
(
:username
)
{
'sample-username'
}
...
...
spec/services/clusters/gcp/provision_service_spec.rb
View file @
be16a89a
...
...
@@ -26,7 +26,7 @@
end
end
context
'when suceeded to request provision'
do
context
'when suc
c
eeded to request provision'
do
before
do
stub_cloud_platform_create_cluster
(
gcp_project_id
,
zone
)
end
...
...
spec/services/groups/transfer_service_spec.rb
View file @
be16a89a
...
...
@@ -347,7 +347,7 @@
end
end
context
'when transfering a group with nested groups and projects'
do
context
'when transfer
r
ing a group with nested groups and projects'
do
let!
(
:group
)
{
create
(
:group
,
:public
)
}
let!
(
:project1
)
{
create
(
:project
,
:repository
,
:private
,
namespace:
group
)
}
let!
(
:subgroup1
)
{
create
(
:group
,
:private
,
parent:
group
)
}
...
...
spec/services/projects/import_service_spec.rb
View file @
be16a89a
...
...
@@ -125,7 +125,7 @@
project
.
import_type
=
'bitbucket'
end
it
'succeeds if repository import is successful
l
'
do
it
'succeeds if repository import is successful'
do
expect_any_instance_of
(
Gitlab
::
Shell
).
to
receive
(
:import_repository
).
and_return
(
true
)
expect_any_instance_of
(
Gitlab
::
BitbucketImport
::
Importer
).
to
receive
(
:execute
).
and_return
(
true
)
expect_any_instance_of
(
Projects
::
LfsPointers
::
LfsImportService
).
to
receive
(
:execute
).
and_return
({})
...
...
spec/services/projects/transfer_service_spec.rb
View file @
be16a89a
...
...
@@ -125,7 +125,7 @@ def current_path
it
{
expect
(
project
.
errors
.
messages
[
:new_namespace
].
first
).
to
eq
'Please select a new namespace for your project.'
}
end
context
'disallow transfering of project with tags'
do
context
'disallow transfer
r
ing of project with tags'
do
let
(
:container_repository
)
{
create
(
:container_repository
)
}
before
do
...
...
spec/services/quick_actions/interpret_service_spec.rb
View file @
be16a89a
...
...
@@ -315,7 +315,7 @@
end
shared_examples
'award command'
do
it
'toggle award 100 emoji if content contain
t
s /award :100:'
do
it
'toggle award 100 emoji if content contains /award :100:'
do
_
,
updates
=
service
.
execute
(
content
,
issuable
)
expect
(
updates
).
to
eq
(
emoji_award:
"100"
)
...
...
@@ -1395,7 +1395,7 @@
it
'includes the formatted duration and proper verb'
do
_
,
explanations
=
service
.
explain
(
content
,
issue
)
expect
(
explanations
).
to
eq
([
'Sub
s
tracts 2h spent time.'
])
expect
(
explanations
).
to
eq
([
'Subtracts 2h spent time.'
])
end
end
...
...
spec/support/capybara.rb
View file @
be16a89a
...
...
@@ -100,7 +100,7 @@
# capybara/rspec already calls Capybara.reset_sessions! in an `after` hook,
# but `block_and_wait_for_requests_complete` is called before it so by
# calling it explicit
e
ly here, we prevent any new requests from being fired
# calling it explicitly here, we prevent any new requests from being fired
# See https://github.com/teamcapybara/capybara/blob/ffb41cfad620de1961bb49b1562a9fa9b28c0903/lib/capybara/rspec.rb#L20-L25
# We don't reset the session when the example failed, because we need capybara-screenshot to have access to it.
Capybara
.
reset_sessions!
unless
example
.
exception
...
...
spec/support/helpers/project_forks_helper.rb
View file @
be16a89a
...
...
@@ -35,7 +35,7 @@ def fork_project(project, user = nil, params = {})
if
create_repository
# The call to project.repository.after_import in RepositoryForkWorker does
# not reset the @exists variable of this forked_project.repository
# so we have to explicit
e
ly call this method to clear the @exists variable.
# so we have to explicitly call this method to clear the @exists variable.
# of the instance we're returning here.
forked_project
.
repository
.
after_import
end
...
...
spec/support/shared_examples/services/boards/lists_move_service.rb
View file @
be16a89a
...
...
@@ -14,7 +14,7 @@
expect
(
current_list_positions
).
to
eq
[
0
,
1
,
2
,
3
]
end
it
'keeps position of lists when new positon is equal to old position'
do
it
'keeps position of lists when new posit
i
on is equal to old position'
do
service
=
described_class
.
new
(
parent
,
user
,
position:
planning
.
position
)
service
.
execute
(
planning
)
...
...
@@ -22,7 +22,7 @@
expect
(
current_list_positions
).
to
eq
[
0
,
1
,
2
,
3
]
end
it
'keeps position of lists when new positon is negative'
do
it
'keeps position of lists when new posit
i
on is negative'
do
service
=
described_class
.
new
(
parent
,
user
,
position:
-
1
)
service
.
execute
(
planning
)
...
...
@@ -30,7 +30,7 @@
expect
(
current_list_positions
).
to
eq
[
0
,
1
,
2
,
3
]
end
it
'keeps position of lists when new positon is equal to number of labels lists'
do
it
'keeps position of lists when new posit
i
on is equal to number of labels lists'
do
service
=
described_class
.
new
(
parent
,
user
,
position:
board
.
lists
.
label
.
size
)
service
.
execute
(
planning
)
...
...
@@ -38,7 +38,7 @@
expect
(
current_list_positions
).
to
eq
[
0
,
1
,
2
,
3
]
end
it
'keeps position of lists when new positon is greater than number of labels lists'
do
it
'keeps position of lists when new posit
i
on is greater than number of labels lists'
do
service
=
described_class
.
new
(
parent
,
user
,
position:
board
.
lists
.
label
.
size
+
1
)
service
.
execute
(
planning
)
...
...
@@ -46,7 +46,7 @@
expect
(
current_list_positions
).
to
eq
[
0
,
1
,
2
,
3
]
end
it
'increments position of intermediate lists when new positon is equal to first position'
do
it
'increments position of intermediate lists when new posit
i
on is equal to first position'
do
service
=
described_class
.
new
(
parent
,
user
,
position:
0
)
service
.
execute
(
staging
)
...
...
@@ -54,7 +54,7 @@
expect
(
current_list_positions
).
to
eq
[
1
,
2
,
3
,
0
]
end
it
'decrements position of intermediate lists when new positon is equal to last position'
do
it
'decrements position of intermediate lists when new posit
i
on is equal to last position'
do
service
=
described_class
.
new
(
parent
,
user
,
position:
board
.
lists
.
label
.
last
.
position
)
service
.
execute
(
planning
)
...
...
spec/tasks/gitlab/backup_rake_spec.rb
View file @
be16a89a
...
...
@@ -251,7 +251,7 @@ def reenable_backup_sub_tasks
allow
(
Gitlab
.
config
.
repositories
).
to
receive
(
:storages
).
and_return
(
storages
)
# Avoid asking gitaly about the root ref (which will fail be
a
cuse of the
# Avoid asking gitaly about the root ref (which will fail bec
a
use of the
# mocked storages)
allow_any_instance_of
(
Repository
).
to
receive
(
:empty?
).
and_return
(
false
)
end
...
...
Prev
1
2
3
4
5
6
Next
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