From a207a2bd004f7b89699d3e52064dbed34603ae2d Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Thu, 28 Jul 2016 17:54:16 -0700 Subject: Fix for JRuby (assert_true is not present). --- ruby/tests/basic.rb | 4 ++-- ruby/tests/well_known_types_test.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ruby/tests') diff --git a/ruby/tests/basic.rb b/ruby/tests/basic.rb index f81e456c..8b6d329e 100644 --- a/ruby/tests/basic.rb +++ b/ruby/tests/basic.rb @@ -468,9 +468,9 @@ module BasicTest assert m.length == 2 m2 = m.dup - assert m == m2 + assert_equal m, m2 assert m.hash != 0 - assert m.hash == m2.hash + assert_equal m.hash, m2.hash collected = {} m.each { |k,v| collected[v] = k } diff --git a/ruby/tests/well_known_types_test.rb b/ruby/tests/well_known_types_test.rb index cf9a3aa0..32e73f55 100644 --- a/ruby/tests/well_known_types_test.rb +++ b/ruby/tests/well_known_types_test.rb @@ -92,7 +92,7 @@ class TestWellKnownTypes < Test::Unit::TestCase ts = Google::Protobuf::Timestamp.new(seconds: 12345, nanos: 6789) any.pack(ts) - assert_true any.is(Google::Protobuf::Timestamp) + assert any.is(Google::Protobuf::Timestamp) assert_equal ts, any.unpack(Google::Protobuf::Timestamp) end end -- cgit v1.2.3