Fix for JRuby (assert_true is not present).

pull/1878/head
Josh Haberman 8 years ago
parent e3094a8d80
commit a207a2bd00
  1. 4
      ruby/tests/basic.rb
  2. 2
      ruby/tests/well_known_types_test.rb

@ -468,9 +468,9 @@ module BasicTest
assert m.length == 2 assert m.length == 2
m2 = m.dup m2 = m.dup
assert m == m2 assert_equal m, m2
assert m.hash != 0 assert m.hash != 0
assert m.hash == m2.hash assert_equal m.hash, m2.hash
collected = {} collected = {}
m.each { |k,v| collected[v] = k } m.each { |k,v| collected[v] = k }

@ -92,7 +92,7 @@ class TestWellKnownTypes < Test::Unit::TestCase
ts = Google::Protobuf::Timestamp.new(seconds: 12345, nanos: 6789) ts = Google::Protobuf::Timestamp.new(seconds: 12345, nanos: 6789)
any.pack(ts) any.pack(ts)
assert_true any.is(Google::Protobuf::Timestamp) assert any.is(Google::Protobuf::Timestamp)
assert_equal ts, any.unpack(Google::Protobuf::Timestamp) assert_equal ts, any.unpack(Google::Protobuf::Timestamp)
end end
end end

Loading…
Cancel
Save