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

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'