Enable some cops to remove ambiguity

This commit is contained in:
gregoirenovel 2018-03-06 12:09:57 +01:00
parent b5b73c8639
commit d3f0fc703a
3 changed files with 5 additions and 5 deletions

View file

@ -274,10 +274,10 @@ Lint/AmbiguousBlockAssociation:
Enabled: false
Lint/AmbiguousOperator:
Enabled: false
Enabled: true
Lint/AmbiguousRegexpLiteral:
Enabled: false
Enabled: true
Lint/AssignmentInCondition:
Enabled: false

View file

@ -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