mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
feat: CSAT response collection public page (#2685)
This commit is contained in:
16
spec/controllers/service/responses_controller_spec.rb
Normal file
16
spec/controllers/service/responses_controller_spec.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
require 'rails_helper'
|
||||
|
||||
describe '/survey/response', type: :request do
|
||||
describe 'GET survey/responses/{uuid}' do
|
||||
it 'renders the page correctly when called' do
|
||||
conversation = create(:conversation)
|
||||
get survey_response_url(id: conversation.uuid)
|
||||
expect(response).to be_successful
|
||||
end
|
||||
|
||||
it 'returns 404 when called with invalid conversation uuid' do
|
||||
get survey_response_url(id: '')
|
||||
expect(response.status).to eq(404)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user