summaryrefslogtreecommitdiff
path: root/test/rb
diff options
context:
space:
mode:
authorKevin Clark <kclark@apache.org>2008-06-18 00:51:45 +0000
committerKevin Clark <kclark@apache.org>2008-06-18 00:51:45 +0000
commitd5c98eedc83aca595a8feea60a331c291fd7eeba (patch)
tree346017f7af126c78513ae166674c54613cec80b9 /test/rb
parent720b5732cc7025a8647fe35342b7c425ceaf60e1 (diff)
downloadthrift-d5c98eedc83aca595a8feea60a331c291fd7eeba.tar.gz
Exercise namespacing in Ruby tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668897 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/rb')
-rw-r--r--test/rb/generation/test_struct.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rb/generation/test_struct.rb b/test/rb/generation/test_struct.rb
index b6c60bad4..3af0df848 100644
--- a/test/rb/generation/test_struct.rb
+++ b/test/rb/generation/test_struct.rb
@@ -4,15 +4,15 @@ require 'SmallService'
class TestStructGeneration < Test::Unit::TestCase
def test_default_values
- hello = Hello.new
+ hello = TestNamespace::Hello.new
- assert_kind_of(Hello, hello)
+ assert_kind_of(TestNamespace::Hello, hello)
assert_nil(hello.complexer)
assert_equal(hello.simple, 53)
assert_equal(hello.words, 'words')
- assert_kind_of(Goodbyez, hello.thinz)
+ assert_kind_of(TestNamespace::Goodbyez, hello.thinz)
assert_equal(hello.thinz.val, 36632)
assert_kind_of(Hash, hello.complex)
@@ -20,7 +20,7 @@ class TestStructGeneration < Test::Unit::TestCase
end
def test_goodbyez
- assert_equal(Goodbyez.new.val, 325)
+ assert_equal(TestNamespace::Goodbyez.new.val, 325)
end
end