aboutsummaryrefslogtreecommitdiff
path: root/ruby/tests
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2016-07-25 17:39:07 -0700
committerJosh Haberman <jhaberman@gmail.com>2016-07-25 17:39:07 -0700
commitb3b07cd8513330ef6f50cadf218b92ea479488c5 (patch)
treee18d2b9922a198bb9007b62cde9214c579a82fab /ruby/tests
parenta17367f44a3b592993d2ac5c074ed58fb0ce784c (diff)
parentba52f2b6780fa5e6bee86cf7e8ee6f6ba617862c (diff)
downloadprotobuf-b3b07cd8513330ef6f50cadf218b92ea479488c5.tar.gz
protobuf-b3b07cd8513330ef6f50cadf218b92ea479488c5.tar.bz2
protobuf-b3b07cd8513330ef6f50cadf218b92ea479488c5.zip
Merge branch 'master' into 3.0.0-GA
We need to pick up some of the last-minute Ruby fixes.
Diffstat (limited to 'ruby/tests')
-rw-r--r--ruby/tests/generated_code.proto2
-rw-r--r--ruby/tests/generated_code_test.rb4
-rw-r--r--ruby/tests/test_import.proto5
3 files changed, 9 insertions, 2 deletions
diff --git a/ruby/tests/generated_code.proto b/ruby/tests/generated_code.proto
index 42d82a6b..62fd83ed 100644
--- a/ruby/tests/generated_code.proto
+++ b/ruby/tests/generated_code.proto
@@ -1,6 +1,6 @@
syntax = "proto3";
-package A.B.C;
+package a.b.c;
message TestMessage {
int32 optional_int32 = 1;
diff --git a/ruby/tests/generated_code_test.rb b/ruby/tests/generated_code_test.rb
index daef357a..b92b0462 100644
--- a/ruby/tests/generated_code_test.rb
+++ b/ruby/tests/generated_code_test.rb
@@ -3,7 +3,8 @@
# generated_code.rb is in the same directory as this test.
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
-require 'generated_code'
+require 'generated_code_pb'
+require 'test_import_pb'
require 'test/unit'
class GeneratedCodeTest < Test::Unit::TestCase
@@ -13,5 +14,6 @@ class GeneratedCodeTest < Test::Unit::TestCase
# successfully creates message definitions and classes, not to test every
# aspect of the extension (basic.rb is for that).
m = A::B::C::TestMessage.new()
+ m2 = FooBar::TestImportedMessage.new()
end
end
diff --git a/ruby/tests/test_import.proto b/ruby/tests/test_import.proto
new file mode 100644
index 00000000..230484ee
--- /dev/null
+++ b/ruby/tests/test_import.proto
@@ -0,0 +1,5 @@
+syntax = "proto3";
+
+package foo_bar;
+
+message TestImportedMessage {}