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
3b89ebb8
Commit
3b89ebb8
authored
Mar 06, 2017
by
Z.J. van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix values being called at Array instead of Hash
parent
2cc64855
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
spec/lib/mattermost/team_spec.rb
spec/lib/mattermost/team_spec.rb
+3
-3
spec/models/project_services/mattermost_slash_commands_service_spec.rb
...roject_services/mattermost_slash_commands_service_spec.rb
+1
-1
No files found.
spec/lib/mattermost/team_spec.rb
View file @
3b89ebb8
...
...
@@ -13,7 +13,7 @@ describe Mattermost::Team do
context
'for valid request'
do
let
(
:response
)
do
[
{
{
"xiyro8huptfhdndadpz8r3wnbo"
=>
{
"id"
=>
"xiyro8huptfhdndadpz8r3wnbo"
,
"create_at"
=>
1482174222155
,
"update_at"
=>
1482174222155
,
...
...
@@ -26,7 +26,7 @@ describe Mattermost::Team do
"allowed_domains"
=>
""
,
"invite_id"
=>
"o4utakb9jtb7imctdfzbf9r5ro"
,
"allow_open_invite"
=>
false
}
]
}
}
end
before
do
...
...
@@ -39,7 +39,7 @@ describe Mattermost::Team do
end
it
'returns a token'
do
is_expected
.
to
eq
(
response
)
is_expected
.
to
eq
(
response
.
values
)
end
end
...
...
spec/models/project_services/mattermost_slash_commands_service_spec.rb
View file @
3b89ebb8
...
...
@@ -92,7 +92,7 @@ describe MattermostSlashCommandsService, :models do
to_return
(
status:
200
,
headers:
{
'Content-Type'
=>
'application/json'
},
body:
[
'list'
]
.
to_json
body:
{
'list'
=>
true
}
.
to_json
)
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