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:
parent
d560d53266
commit
8559fbfbe8
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue