style: append o option to regexp

Performance/ConstantRegexp: Extract this regexp into a constant or append an /o option to its options.
This commit is contained in:
Frank Taillandier 2020-11-23 16:53:10 +01:00
parent d560d53266
commit 8559fbfbe8
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class TestNewCommand < JekyllUnitTest
refute_exist @full_path refute_exist @full_path
capture_output { Jekyll::Commands::New.process(@args) } capture_output { Jekyll::Commands::New.process(@args) }
assert_exist gemfile 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)) assert_match(%r!gem "github-pages"!, File.read(gemfile))
end end