spec/nanoc/regressions/gh_1130_spec.rb in nanoc-4.7.9 vs spec/nanoc/regressions/gh_1130_spec.rb in nanoc-4.7.10
- old
+ new
@@ -1,16 +1,18 @@
+# frozen_string_literal: true
+
describe 'GH-1130', site: true, stdio: true do
before do
File.write('content/foo', 'asdf')
- File.write('Rules', <<EOS)
-passthrough '/**/*'
+ File.write('Rules', <<~EOS)
+ passthrough '/**/*'
EOS
- File.write('Checks', <<EOS)
-check :wat do
- @items.flat_map(&:reps).map(&:raw_path)
-end
+ File.write('Checks', <<~EOS)
+ check :wat do
+ @items.flat_map(&:reps).map(&:raw_path)
+ end
EOS
end
it 'does not raise fiber error' do
Nanoc::CLI.run(%w[check wat])