Updated test for new error result

This commit is contained in:
Luke "Jared" Bennett 2017-01-30 13:59:13 +00:00
parent b3de65bcc5
commit bd5245dba6
No known key found for this signature in database
GPG Key ID: 402ED51FB5D306C2
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ feature 'Setup Mattermost slash commands', feature: true do
end
it 'shows an error alert with the error message if there is an error requesting teams' do
allow_any_instance_of(MattermostSlashCommandsService).to receive(:list_teams) { 'test mattermost error message' }
allow_any_instance_of(MattermostSlashCommandsService).to receive(:list_teams) { [[], 'test mattermost error message'] }
click_link 'Add to Mattermost'