aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAdam Cozzette <acozzette@gmail.com>2016-11-23 11:26:31 -0800
committerGitHub <noreply@github.com>2016-11-23 11:26:31 -0800
commit39f9b43219bc5718b659ed72a2130a7b2ce66108 (patch)
treee48fe16afc2e1d868408e9453fff521d6ddcd4ae /ruby
parentc9504715634948c9f8f306330449f296d926b74e (diff)
parent65479cb7b1f99ab957da68abce17feb68a9e1cf0 (diff)
downloadprotobuf-39f9b43219bc5718b659ed72a2130a7b2ce66108.tar.gz
protobuf-39f9b43219bc5718b659ed72a2130a7b2ce66108.tar.bz2
protobuf-39f9b43219bc5718b659ed72a2130a7b2ce66108.zip
Merge pull request #2403 from google/down-integrate-with-msvc-fix
Integrated internal changes from Google
Diffstat (limited to 'ruby')
-rw-r--r--ruby/tests/basic.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/ruby/tests/basic.rb b/ruby/tests/basic.rb
index 967ff81f..e0dba8bd 100644
--- a/ruby/tests/basic.rb
+++ b/ruby/tests/basic.rb
@@ -1183,13 +1183,15 @@ module BasicTest
end
def test_comparison_with_arbitrary_object
- assert_false MapMessage.new == nil
+ assert MapMessage.new != nil
end
def test_respond_to
+ # This test fails with JRuby 1.7.23, likely because of an old JRuby bug.
+ return if RUBY_PLATFORM == "java"
msg = MapMessage.new
assert msg.respond_to?(:map_string_int32)
- assert_false msg.respond_to?(:bacon)
+ assert !msg.respond_to?(:bacon)
end
end
end