Enable some cops to remove ambiguity
This commit is contained in:
parent
b5b73c8639
commit
d3f0fc703a
3 changed files with 5 additions and 5 deletions
|
@ -274,10 +274,10 @@ Lint/AmbiguousBlockAssociation:
|
|||
Enabled: false
|
||||
|
||||
Lint/AmbiguousOperator:
|
||||
Enabled: false
|
||||
Enabled: true
|
||||
|
||||
Lint/AmbiguousRegexpLiteral:
|
||||
Enabled: false
|
||||
Enabled: true
|
||||
|
||||
Lint/AssignmentInCondition:
|
||||
Enabled: false
|
||||
|
|
|
@ -333,9 +333,9 @@ describe API::V1::DossiersController do
|
|||
|
||||
it { expect(subject[:created_at]).not_to be_nil }
|
||||
if Features.remote_storage
|
||||
it { expect(subject[:content_url]).to match /^https:\/\/storage.apientreprise.fr\/tps_dev\/cerfa-.*\.pdf$/ }
|
||||
it { expect(subject[:content_url]).to match(/^https:\/\/storage.apientreprise.fr\/tps_dev\/cerfa-.*\.pdf$/) }
|
||||
else
|
||||
it { expect(subject[:content_url]).to match /^http:\/\/.*downloads.*_CERFA\.pdf$/ }
|
||||
it { expect(subject[:content_url]).to match(/^http:\/\/.*downloads.*_CERFA\.pdf$/) }
|
||||
end
|
||||
|
||||
describe 'user' do
|
||||
|
|
Loading…
Reference in a new issue