Chore: Add Twitter documentation (#648)

* Chore: Add Twitter documentation

Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
Pranav Raj S
2020-03-28 11:51:42 +05:30
committed by GitHub
parent a3c2d4e5bd
commit 50ebbc13b6
20 changed files with 103 additions and 14 deletions

View File

@@ -24,7 +24,7 @@ RSpec.describe 'Twitter::CallbacksController', type: :request do
it 'renders the page correctly when called with website_token' do
get twitter_callback_url
account.reload
expect(response).to redirect_to app_twitter_inbox_agents_url(inbox_id: account.inboxes.last.id)
expect(response).to redirect_to app_twitter_inbox_agents_url(account_id: account.id, inbox_id: account.inboxes.last.id)
expect(account.inboxes.count).to be 1
expect(account.twitter_profiles.last.inbox.name).to eq 'chatwoot'
expect(account.twitter_profiles.last.profile_id).to eq '100'