spec/nanoc/regressions/gh_974_spec.rb in nanoc-4.7.9 vs spec/nanoc/regressions/gh_974_spec.rb in nanoc-4.7.10
- old
+ new
@@ -1,12 +1,14 @@
+# frozen_string_literal: true
+
describe 'GH-974', site: true, stdio: true do
before do
File.write('content/foo.md', 'foo')
- File.write('Rules', <<EOS)
-compile '/foo.*' do
- write item.identifier
-end
+ File.write('Rules', <<~EOS)
+ compile '/foo.*' do
+ write item.identifier
+ end
EOS
end
it 'writes to path corresponding to identifier' do
Nanoc::CLI.run(%w[compile])