Module: Treebis::Test::TestSopen
- Included in:
- TestCase
- Defined in:
- lib/treebis.rb
Instance Method Summary collapse
Instance Method Details
#test_sopen2_fails ⇒ Object
1417 1418 1419 1420 1421 1422 |
# File 'lib/treebis.rb', line 1417 def test_sopen2_fails e = assert_raises(RuntimeError) do Treebis::Sopen2.sopen2assert('patch', '-u', 'foo', 'bar') end assert_match(/Can't open patch file bar/, e.) end |
#test_sopen2_succeeds ⇒ Object
1423 1424 1425 1426 |
# File 'lib/treebis.rb', line 1423 def test_sopen2_succeeds out = Treebis::Sopen2.sopen2assert('echo', 'baz') assert_equal "baz\n", out end |