Commit c7241266 authored by Z.J. van de Weg's avatar Z.J. van de Weg

Post username as property, not user_name

parent 6d9c1d3e
...@@ -46,6 +46,6 @@ class MattermostSlashCommandsService < ChatSlashCommandsService ...@@ -46,6 +46,6 @@ class MattermostSlashCommandsService < ChatSlashCommandsService
description: "Perform common operations on: #{pretty_project_name}", description: "Perform common operations on: #{pretty_project_name}",
display_name: "GitLab / #{pretty_project_name}", display_name: "GitLab / #{pretty_project_name}",
method: 'P', method: 'P',
user_name: 'GitLab') username: 'GitLab')
end end
end end
...@@ -36,7 +36,7 @@ describe MattermostSlashCommandsService, :models do ...@@ -36,7 +36,7 @@ describe MattermostSlashCommandsService, :models do
description: "Perform common operations on: #{project.name_with_namespace}", description: "Perform common operations on: #{project.name_with_namespace}",
display_name: "GitLab / #{project.name_with_namespace}", display_name: "GitLab / #{project.name_with_namespace}",
method: 'P', method: 'P',
user_name: 'GitLab' }.to_json). username: 'GitLab' }.to_json).
to_return( to_return(
status: 200, status: 200,
headers: { 'Content-Type' => 'application/json' }, headers: { 'Content-Type' => 'application/json' },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment