зеркало из https://github.com/github/ruby.git
* test/objspace/test_objspace.rb (TestObjSpace#test_dump_uninitialized_file):
remove dependency on json library. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d4ab41e393
Коммит
b204fe182f
|
@ -1,3 +1,8 @@
|
|||
Tue Mar 11 22:22:38 2014 Kazuki Tsujimoto <kazuki@callcc.net>
|
||||
|
||||
* test/objspace/test_objspace.rb (TestObjSpace#test_dump_uninitialized_file):
|
||||
remove dependency on json library.
|
||||
|
||||
Tue Mar 11 10:55:10 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* README.EXT{,.ja} (Appendix B): update contents of `ruby_options`
|
||||
|
|
|
@ -268,13 +268,12 @@ class TestObjSpace < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_dump_uninitialized_file
|
||||
assert_in_out_err(%[-robjspace], <<-RUBY) do |output, error|
|
||||
assert_in_out_err(%[-robjspace], <<-RUBY) do |(output), (error)|
|
||||
puts ObjectSpace.dump(File.allocate)
|
||||
RUBY
|
||||
assert_equal [], error
|
||||
json = JSON.load(output.join)
|
||||
assert_equal "FILE", json["type"]
|
||||
assert_nil json["fd"]
|
||||
assert_nil error
|
||||
assert_match /"type":"FILE"/, output
|
||||
assert_not_match /"fd":/, output
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче