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
Léo-Paul Géneau
gitlab-ce
Commits
c9ecf49d
Commit
c9ecf49d
authored
Jun 27, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct "autorize" typos
parent
f63e234b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
lib/gitlab/slash_commands/presenters/access.rb
lib/gitlab/slash_commands/presenters/access.rb
+1
-1
spec/requests/api/issues_spec.rb
spec/requests/api/issues_spec.rb
+2
-2
spec/requests/api/project_snippets_spec.rb
spec/requests/api/project_snippets_spec.rb
+1
-1
spec/requests/api/snippets_spec.rb
spec/requests/api/snippets_spec.rb
+1
-1
No files found.
lib/gitlab/slash_commands/presenters/access.rb
View file @
c9ecf49d
...
@@ -15,7 +15,7 @@ module Gitlab
...
@@ -15,7 +15,7 @@ module Gitlab
if
@resource
if
@resource
":wave: Hi there! Before I do anything for you, please [connect your GitLab account](
#{
@resource
}
)."
":wave: Hi there! Before I do anything for you, please [connect your GitLab account](
#{
@resource
}
)."
else
else
":sweat_smile: Couldn't identify you, nor can I autorize you!"
":sweat_smile: Couldn't identify you, nor can I aut
h
orize you!"
end
end
ephemeral_response
(
text:
message
)
ephemeral_response
(
text:
message
)
...
...
spec/requests/api/issues_spec.rb
View file @
c9ecf49d
...
@@ -1679,7 +1679,7 @@ describe API::Issues do
...
@@ -1679,7 +1679,7 @@ describe API::Issues do
let!
(
:user_agent_detail
)
{
create
(
:user_agent_detail
,
subject:
issue
)
}
let!
(
:user_agent_detail
)
{
create
(
:user_agent_detail
,
subject:
issue
)
}
context
'when unauthenticated'
do
context
'when unauthenticated'
do
it
"returns unautorized"
do
it
"returns unaut
h
orized"
do
get
api
(
"/projects/
#{
project
.
id
}
/issues/
#{
issue
.
iid
}
/user_agent_detail"
)
get
api
(
"/projects/
#{
project
.
id
}
/issues/
#{
issue
.
iid
}
/user_agent_detail"
)
expect
(
response
).
to
have_gitlab_http_status
(
401
)
expect
(
response
).
to
have_gitlab_http_status
(
401
)
...
@@ -1695,7 +1695,7 @@ describe API::Issues do
...
@@ -1695,7 +1695,7 @@ describe API::Issues do
expect
(
json_response
[
'akismet_submitted'
]).
to
eq
(
user_agent_detail
.
submitted
)
expect
(
json_response
[
'akismet_submitted'
]).
to
eq
(
user_agent_detail
.
submitted
)
end
end
it
"returns unautorized for non-admin users"
do
it
"returns unaut
h
orized for non-admin users"
do
get
api
(
"/projects/
#{
project
.
id
}
/issues/
#{
issue
.
iid
}
/user_agent_detail"
,
user
)
get
api
(
"/projects/
#{
project
.
id
}
/issues/
#{
issue
.
iid
}
/user_agent_detail"
,
user
)
expect
(
response
).
to
have_gitlab_http_status
(
403
)
expect
(
response
).
to
have_gitlab_http_status
(
403
)
...
...
spec/requests/api/project_snippets_spec.rb
View file @
c9ecf49d
...
@@ -25,7 +25,7 @@ describe API::ProjectSnippets do
...
@@ -25,7 +25,7 @@ describe API::ProjectSnippets do
expect
(
response
).
to
have_gitlab_http_status
(
404
)
expect
(
response
).
to
have_gitlab_http_status
(
404
)
end
end
it
"returns unautorized for non-admin users"
do
it
"returns unaut
h
orized for non-admin users"
do
get
api
(
"/projects/
#{
snippet
.
project
.
id
}
/snippets/
#{
snippet
.
id
}
/user_agent_detail"
,
user
)
get
api
(
"/projects/
#{
snippet
.
project
.
id
}
/snippets/
#{
snippet
.
id
}
/user_agent_detail"
,
user
)
expect
(
response
).
to
have_gitlab_http_status
(
403
)
expect
(
response
).
to
have_gitlab_http_status
(
403
)
...
...
spec/requests/api/snippets_spec.rb
View file @
c9ecf49d
...
@@ -314,7 +314,7 @@ describe API::Snippets do
...
@@ -314,7 +314,7 @@ describe API::Snippets do
expect
(
json_response
[
'akismet_submitted'
]).
to
eq
(
user_agent_detail
.
submitted
)
expect
(
json_response
[
'akismet_submitted'
]).
to
eq
(
user_agent_detail
.
submitted
)
end
end
it
"returns unautorized for non-admin users"
do
it
"returns unaut
h
orized for non-admin users"
do
get
api
(
"/snippets/
#{
snippet
.
id
}
/user_agent_detail"
,
user
)
get
api
(
"/snippets/
#{
snippet
.
id
}
/user_agent_detail"
,
user
)
expect
(
response
).
to
have_gitlab_http_status
(
403
)
expect
(
response
).
to
have_gitlab_http_status
(
403
)
...
...
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