spec/nanoc/regressions/gh_937_spec.rb in nanoc-4.7.9 vs spec/nanoc/regressions/gh_937_spec.rb in nanoc-4.7.10
- old
+ new
@@ -1,18 +1,20 @@
+# frozen_string_literal: true
+
describe 'GH-937', site: true, stdio: true do
before do
File.write('content/style.sass', ".test\n color: red")
File.write(
'nanoc.yaml',
"sass_style: compact\nenvironments:\n staging:\n sass_style: expanded",
)
- File.write('Rules', <<EOS)
-compile '/*.sass' do
- filter :sass, style: @config[:sass_style].to_sym
- write item.identifier.without_ext + '.css'
-end
+ File.write('Rules', <<~EOS)
+ compile '/*.sass' do
+ filter :sass, style: @config[:sass_style].to_sym
+ write item.identifier.without_ext + '.css'
+ end
EOS
end
it 'does not use cache when switching environments' do
Nanoc::CLI.run(%w[compile])