ruby-changes:31966
From: nobu <ko1@a...>
Date: Sat, 7 Dec 2013 10:44:52 +0900 (JST)
Subject: [ruby-changes:31966] nobu:r44045 (trunk): test_struct.rb: use assert_predicate
nobu 2013-12-07 10:44:46 +0900 (Sat, 07 Dec 2013) New Revision: 44045 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44045 Log: test_struct.rb: use assert_predicate * test/ruby/test_struct.rb (test_question_mark_in_member): assert_true is a method in test-unit. use assert_predicate instead. * test/ruby/test_struct.rb (test_bang_mark_in_member): ditto. Modified files: trunk/test/ruby/test_struct.rb Index: test/ruby/test_struct.rb =================================================================== --- test/ruby/test_struct.rb (revision 44044) +++ test/ruby/test_struct.rb (revision 44045) @@ -287,13 +287,13 @@ module TestStruct https://github.com/ruby/ruby/blob/trunk/test/ruby/test_struct.rb#L287 def test_question_mark_in_member klass = @Struct.new(:a, :b?) o = klass.new("test", true) - assert_true(o.b?) + assert_predicate(o, :b?) end def test_bang_mark_in_member klass = @Struct.new(:a, :b!) o = klass.new("test", true) - assert_true(o.b!) + assert_predicate(o, :b!) end class TopStruct < Test::Unit::TestCase -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/