1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_beginendblock.rb: rename methods

* test/ruby/test_beginendblock.rb: rename methods, tests always what
  "should" happen.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-06-10 06:33:58 +00:00
parent 8c239f35de
commit c2b4f88fcb

View file

@ -89,14 +89,14 @@ EOW
assert_match(/SomethingElse/, out, "[ruby-core:9675]") assert_match(/SomethingElse/, out, "[ruby-core:9675]")
end end
def test_should_propagate_exit_code def test_propagate_exit_code
ruby = EnvUtil.rubybin ruby = EnvUtil.rubybin
assert_equal false, system(ruby, '-e', 'at_exit{exit 2}') assert_equal false, system(ruby, '-e', 'at_exit{exit 2}')
assert_equal 2, $?.exitstatus assert_equal 2, $?.exitstatus
assert_nil $?.termsig assert_nil $?.termsig
end end
def test_should_propagate_signaled def test_propagate_signaled
ruby = EnvUtil.rubybin ruby = EnvUtil.rubybin
out = IO.popen( out = IO.popen(
[ruby, [ruby,