mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
[Feature] Email collect message hooks (#331)
- Add email collect hook on creating conversation - Merge contact if it already exist
This commit is contained in:
17
spec/controllers/widgets_controller_spec.rb
Normal file
17
spec/controllers/widgets_controller_spec.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
require 'rails_helper'
|
||||
|
||||
describe '/widget', type: :request do
|
||||
let(:web_widget) { create(:channel_widget) }
|
||||
|
||||
describe 'GET /widget' do
|
||||
it 'renders the page correctly when called with website_token' do
|
||||
get widget_url(website_token: web_widget.website_token)
|
||||
expect(response).to be_successful
|
||||
end
|
||||
|
||||
it 'returns 404 when called with out website_token' do
|
||||
get widget_url
|
||||
expect(response.status).to eq(404)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user