mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
chore: Enable the new Rubocop rules (#7122)
fixes: https://linear.app/chatwoot/issue/CW-1574/renable-the-disabled-rubocop-rules
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe 'Api::V1::Accounts::Integrations::Slacks', type: :request do
|
||||
RSpec.describe 'Api::V1::Accounts::Integrations::Slacks' do
|
||||
let(:account) { create(:account) }
|
||||
let(:agent) { create(:user, account: account, role: :administrator) }
|
||||
let!(:hook) { create(:integrations_hook, account: account) }
|
||||
@@ -28,7 +28,7 @@ RSpec.describe 'Api::V1::Accounts::Integrations::Slacks', type: :request do
|
||||
headers: agent.create_new_auth_token
|
||||
|
||||
expect(response).to have_http_status(:success)
|
||||
json_response = JSON.parse(response.body)
|
||||
json_response = response.parsed_body
|
||||
expect(json_response['id']).to eql('slack')
|
||||
end
|
||||
end
|
||||
@@ -53,7 +53,7 @@ RSpec.describe 'Api::V1::Accounts::Integrations::Slacks', type: :request do
|
||||
headers: agent.create_new_auth_token
|
||||
|
||||
expect(response).to have_http_status(:success)
|
||||
json_response = JSON.parse(response.body)
|
||||
json_response = response.parsed_body
|
||||
expect(json_response['app_id']).to eql('slack')
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe 'Api::V1::Integrations::Webhooks', type: :request do
|
||||
RSpec.describe 'Api::V1::Integrations::Webhooks' do
|
||||
describe 'POST /api/v1/integrations/webhooks' do
|
||||
it 'consumes webhook' do
|
||||
builder = Integrations::Slack::IncomingMessageBuilder.new({})
|
||||
|
||||
Reference in New Issue
Block a user