mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user