minimal test of 'skip_test'

This commit is contained in:
Johan Holmberg 2016-11-07 18:32:39 +01:00
parent 94130debdd
commit af412833bc

21
t/CMDTEST_skip_test.rb Normal file
View File

@ -0,0 +1,21 @@
require "selftest_utils"
class CMDTEST_skip_test < Cmdtest::Testcase
include SelftestUtils
def test_skip_test
create_CMDTEST_foo [
"skip_test 'FooBar platform only' if true",
"cmd 'false.rb' do",
"end",
]
cmd_cmdtest do
stdout_equal [
'--- SKIP: FooBar platform only',
]
end
end
end