Torsten Rüger
1ee01622c3
All preloading where it needs to be (some)tests for the preload split compiler test remembered binary tests (usually just run on travis)
18 lines
424 B
Ruby
18 lines
424 B
Ruby
require_relative "helper"
|
|
require "rubyx/rubyxc"
|
|
|
|
module RubyX
|
|
class TestRubyXCli < MiniTest::Test
|
|
|
|
def test_invoke_without_not_work
|
|
assert_output(nil , /not find/) {RubyXC.start(["list"])}
|
|
end
|
|
def test_invoke_compile_works
|
|
assert_output( "") {RubyXC.start(["compile" ])}
|
|
end
|
|
def test_file_fail
|
|
assert_output(nil , /No such file/) {RubyXC.start(["compile" , "hi"])}
|
|
end
|
|
end
|
|
end
|