diff --git a/.rubocop_basic.yml b/.rubocop_basic.yml index e6578c2d3..d675de4e0 100644 --- a/.rubocop_basic.yml +++ b/.rubocop_basic.yml @@ -117,6 +117,9 @@ Layout/TrailingBlankLines: Layout/TrailingWhitespace: Enabled: true +Lint/AmbiguousRegexpLiteral: + Enabled: true + Lint/LiteralAsCondition: Enabled: true diff --git a/spec/features/admin/emails/emails_download_spec.rb b/spec/features/admin/emails/emails_download_spec.rb index 9a2e0a445..fce00f9a0 100644 --- a/spec/features/admin/emails/emails_download_spec.rb +++ b/spec/features/admin/emails/emails_download_spec.rb @@ -33,8 +33,8 @@ describe "Admin download user emails" do end header = page.response_headers["Content-Disposition"] - expect(header).to match /^attachment/ - expect(header).to match /filename="Administrators.csv"$/ + expect(header).to match(/^attachment/) + expect(header).to match(/filename="Administrators.csv"$/) file_contents = page.body.split(",") expect(file_contents).to match_array ["admin_news1@consul.dev", "admin_news2@consul.dev"]