From 8559fbfbe862790f58e0acfea0cbab6d07fabe68 Mon Sep 17 00:00:00 2001 From: Frank Taillandier Date: Mon, 23 Nov 2020 16:53:10 +0100 Subject: [PATCH] style: append o option to regexp Performance/ConstantRegexp: Extract this regexp into a constant or append an /o option to its options. --- test/test_new_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_new_command.rb b/test/test_new_command.rb index 7419ec6e..c71cf418 100644 --- a/test/test_new_command.rb +++ b/test/test_new_command.rb @@ -40,7 +40,7 @@ class TestNewCommand < JekyllUnitTest refute_exist @full_path capture_output { Jekyll::Commands::New.process(@args) } assert_exist gemfile - assert_match(%r!gem "jekyll", "~> #{Jekyll::VERSION}"!, File.read(gemfile)) + assert_match(%r!gem "jekyll", "~> #{Jekyll::VERSION}"!o, File.read(gemfile)) assert_match(%r!gem "github-pages"!, File.read(gemfile)) end