test/test_command.rb in cri-2.0.1 vs test/test_command.rb in cri-2.0.2

- old
+ new

@@ -293,6 +293,14 @@ end assert_equal 'baresub', cmd.subcommands.to_a[0].name end + def test_backtrace_includes_filename + error = assert_raises RuntimeError do + Cri::Command.define('raise "boom"', 'mycommand.rb') + end + + assert_match /mycommand.rb/, error.backtrace.join("\n") + end + end