test/extra/test_auto_compiler.rb in nanoc-3.5.0 vs test/extra/test_auto_compiler.rb in nanoc-3.6.0
- old
+ new
@@ -367,25 +367,25 @@
# Create autocompiler
autocompiler = Nanoc::Extra::AutoCompiler.new('.')
# Set config to 1st value
- File.open('config.yaml', 'w') do |io|
+ File.open('nanoc.yaml', 'w') do |io|
io.write "value: Foo"
end
- File.utime(Time.now+5, Time.now+5, 'config.yaml')
+ File.utime(Time.now+5, Time.now+5, 'nanoc.yaml')
# Check
status, headers, body = autocompiler.call('REQUEST_METHOD' => 'GET', 'PATH_INFO' => '/')
body.each do |b|
assert_match(/The Grand Value of Configuration is Foo!/, b)
end
# Set config to 2nd value
- File.open('config.yaml', 'w') do |io|
+ File.open('nanoc.yaml', 'w') do |io|
io.write "value: Bar"
end
- File.utime(Time.now+5, Time.now+5, 'config.yaml')
+ File.utime(Time.now+5, Time.now+5, 'nanoc.yaml')
# Check
status, headers, body = autocompiler.call('REQUEST_METHOD' => 'GET', 'PATH_INFO' => '/')
body.each do |b|
assert_match(/The Grand Value of Configuration is Bar!/, b)