'teardown' should run after AssertFailed too

This commit is contained in:
Johan Holmberg 2016-10-30 21:42:47 +01:00
parent dfb27787fe
commit 1af393872c

View File

@ -186,6 +186,7 @@ module Cmdtest
runner.method_filter.success(method_id)
ok = true
rescue Cmdtest::AssertFailed => e
obj.teardown
clog.assert_failure(e.message)
runner.method_filter.failure(method_id)
rescue => e