Chore: Send browser language in webwidget events (#952)

Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
Sojan Jose
2020-06-13 00:19:43 +05:30
committed by GitHub
parent ed1c871633
commit f9e8bb8e10
10 changed files with 47 additions and 30 deletions

View File

@@ -30,7 +30,9 @@ RSpec.describe '/api/v1/widget/events', type: :request do
as: :json
expect(response).to have_http_status(:success)
expect(Rails.configuration.dispatcher).to have_received(:dispatch).with(params[:name], anything, contact_inbox: contact_inbox)
expect(Rails.configuration.dispatcher).to have_received(:dispatch)
.with(params[:name], anything, contact_inbox: contact_inbox,
event_info: { browser_language: nil, widget_language: nil })
end
end
end