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

Fix values being called at Array instead of Hash

parent 2cc64855
...@@ -13,7 +13,7 @@ describe Mattermost::Team do ...@@ -13,7 +13,7 @@ describe Mattermost::Team do
context 'for valid request' do context 'for valid request' do
let(:response) do let(:response) do
[{ { "xiyro8huptfhdndadpz8r3wnbo" => {
"id" => "xiyro8huptfhdndadpz8r3wnbo", "id" => "xiyro8huptfhdndadpz8r3wnbo",
"create_at" => 1482174222155, "create_at" => 1482174222155,
"update_at" => 1482174222155, "update_at" => 1482174222155,
...@@ -26,7 +26,7 @@ describe Mattermost::Team do ...@@ -26,7 +26,7 @@ describe Mattermost::Team do
"allowed_domains" => "", "allowed_domains" => "",
"invite_id" => "o4utakb9jtb7imctdfzbf9r5ro", "invite_id" => "o4utakb9jtb7imctdfzbf9r5ro",
"allow_open_invite" => false "allow_open_invite" => false
}] } }
end end
before do before do
...@@ -39,7 +39,7 @@ describe Mattermost::Team do ...@@ -39,7 +39,7 @@ describe Mattermost::Team do
end end
it 'returns a token' do it 'returns a token' do
is_expected.to eq(response) is_expected.to eq(response.values)
end end
end end
......
...@@ -92,7 +92,7 @@ describe MattermostSlashCommandsService, :models do ...@@ -92,7 +92,7 @@ describe MattermostSlashCommandsService, :models do
to_return( to_return(
status: 200, status: 200,
headers: { 'Content-Type' => 'application/json' }, headers: { 'Content-Type' => 'application/json' },
body: ['list'].to_json body: { 'list' => true }.to_json
) )
end end
......
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