test/extra/checking/test_dsl.rb in nanoc-4.1.0rc2 vs test/extra/checking/test_dsl.rb in nanoc-4.1.0
- old
+ new
@@ -9,6 +9,15 @@
# One check marked for deployment
assert_equal [:bar], dsl.deploy_checks
end
end
+
+ def test_has_base_path
+ with_site do |_site|
+ File.write('stuff.rb', '$greeting = "hello"')
+ File.write('Checks', 'require "./stuff"')
+ Nanoc::Extra::Checking::DSL.from_file('Checks')
+ assert_equal 'hello', $greeting
+ end
+ end
end