aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/tests
diff options
context:
space:
mode:
authorGravatar Josh Haberman <jhaberman@gmail.com>2016-07-28 17:54:16 -0700
committerGravatar Josh Haberman <jhaberman@gmail.com>2016-07-28 17:54:16 -0700
commita207a2bd004f7b89699d3e52064dbed34603ae2d (patch)
tree19c6de238baf49a38362f83e533af9abf3d20f38 /ruby/tests
parente3094a8d803c0b9df33a8a506cce28a89c5fd6e8 (diff)
Fix for JRuby (assert_true is not present).
Diffstat (limited to 'ruby/tests')
-rw-r--r--ruby/tests/basic.rb4
-rw-r--r--ruby/tests/well_known_types_test.rb2
2 files changed, 3 insertions, 3 deletions
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