test/cli/test_cli.rb in nanoc-3.6.11 vs test/cli/test_cli.rb in nanoc-3.7.0
- old
+ new
@@ -100,9 +100,18 @@
assert_match(/Stack trace:/, stderr_addition)
assert_match(/commands\/_test.rb/, stderr_addition)
end
end
+ def test_after_setup
+ $after_setup_success = false
+ Nanoc::CLI.after_setup do
+ $after_setup_success = true
+ end
+ Nanoc::CLI.setup
+ assert $after_setup_success
+ end
+
def test_enable_utf8_only_on_tty
new_env_diff = {
'LC_ALL' => 'en_US.ISO-8859-1',
'LC_CTYPE' => 'en_US.ISO-8859-1',
'LANG' => 'en_US.ISO-8859-1',