test/extra/checking/test_dsl.rb in nanoc-4.3.5 vs test/extra/checking/test_dsl.rb in nanoc-4.3.6
- old
+ new
@@ -18,6 +18,14 @@
File.write('Checks', 'require "./stuff"')
Nanoc::Extra::Checking::DSL.from_file('Checks')
assert_equal 'hello', $greeting
end
end
+
+ def test_has_absolute_path
+ with_site do |_site|
+ File.write('Checks', '$stuff = __FILE__')
+ Nanoc::Extra::Checking::DSL.from_file('Checks')
+ assert($stuff.start_with?('/'))
+ end
+ end
end