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:
Sojan Jose
2023-05-19 14:37:10 +05:30
committed by GitHub
parent b988a01df3
commit 7ab7bac6bf
215 changed files with 609 additions and 608 deletions

View File

@@ -1,6 +1,6 @@
require 'rails_helper'
RSpec.describe CacheKeysHelper, type: :helper do
RSpec.describe CacheKeysHelper do
let(:account_id) { 1 }
let(:key) { 'example_key' }

View File

@@ -1,6 +1,6 @@
require 'rails_helper'
describe EmailHelper, type: :helper do
describe EmailHelper do
describe '#normalize_email_with_plus_addressing' do
context 'when email is passed' do
it 'normalise if plus addressing is present' do

View File

@@ -1,6 +1,6 @@
require 'rails_helper'
describe FrontendUrlsHelper, type: :helper do
describe FrontendUrlsHelper do
describe '#frontend_url' do
context 'without query params' do
it 'creates path correctly' do

View File

@@ -1,6 +1,6 @@
require 'rails_helper'
describe MessageFormatHelper, type: :helper do
describe MessageFormatHelper do
describe '#transform_user_mention_content' do
context 'when transform_user_mention_content called' do
it 'return transormed text correctly' do

View File

@@ -1,6 +1,6 @@
require 'rails_helper'
describe UrlHelper, type: :helper do
describe UrlHelper do
describe '#url_valid' do
context 'when url valid called' do
it 'return if valid url passed' do