spec/nanoc/regressions/gh_804_spec.rb in nanoc-4.7.9 vs spec/nanoc/regressions/gh_804_spec.rb in nanoc-4.7.10
- old
+ new
@@ -1,19 +1,21 @@
+# frozen_string_literal: true
+
describe 'GH-804', site: true, stdio: true do
before do
File.write('content/item.md', 'Stuff!')
File.write('Rules', <<EOS)
compile '/**/*' do
filter :erb if item[:dynamic]
write item.identifier.without_ext + '.html'
end
EOS
- File.write('Checks', <<EOS)
-check :donkey do
- self.add_issue('Not enough donkeys')
- self.add_issue('Too many cats', subject: '/catlady.md')
-end
+ File.write('Checks', <<~EOS)
+ check :donkey do
+ self.add_issue('Not enough donkeys')
+ self.add_issue('Too many cats', subject: '/catlady.md')
+ end
EOS
end
it 'does not crash' do
expect { Nanoc::CLI.run(%w[check donkey]) }.to(