summaryrefslogtreecommitdiff
path: root/test/rb
diff options
context:
space:
mode:
authorKevin Clark <kclark@apache.org>2008-06-18 01:04:03 +0000
committerKevin Clark <kclark@apache.org>2008-06-18 01:04:03 +0000
commit9d33041a1be82e79c7bb89393bbe9c7f78fe93cd (patch)
tree2b7886885b214b4417a25b184443ac2175db3fd0 /test/rb
parentdd8ef9ef53c3cf4da28e641d05a16b65af0c4bcc (diff)
downloadthrift-9d33041a1be82e79c7bb89393bbe9c7f78fe93cd.tar.gz
Fix name usage in tests. Remove test for TTransport as it really wasn't testing anything useful.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668937 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/rb')
-rw-r--r--test/rb/core/test_backwards_compatability.rb2
-rw-r--r--test/rb/core/transport/test_transport.rb (renamed from test/rb/core/transport/test_ttransport.rb)24
2 files changed, 5 insertions, 21 deletions
diff --git a/test/rb/core/test_backwards_compatability.rb b/test/rb/core/test_backwards_compatability.rb
index c6747524c..2e5330d5c 100644
--- a/test/rb/core/test_backwards_compatability.rb
+++ b/test/rb/core/test_backwards_compatability.rb
@@ -2,7 +2,7 @@ require File.join(File.dirname(__FILE__), '../test_helper')
require 'thrift/thrift'
-class TestTException < Test::Unit::TestCase
+class TestThriftException < Test::Unit::TestCase
def test_has_accessible_message
msg = "hi there thrift"
assert_equal msg, Thrift::Exception.new(msg).message
diff --git a/test/rb/core/transport/test_ttransport.rb b/test/rb/core/transport/test_transport.rb
index 366389b53..7a62e5a3c 100644
--- a/test/rb/core/transport/test_ttransport.rb
+++ b/test/rb/core/transport/test_transport.rb
@@ -1,8 +1,8 @@
require File.join(File.dirname(__FILE__), '../../test_helper')
-require 'thrift/transport/ttransport'
+require 'thrift/transport'
-class DummyTransport < TTransport
+class DummyTransport < Thrift::Transport
def initialize(data)
@data = data
end
@@ -13,9 +13,9 @@ class DummyTransport < TTransport
end
# TTransport is basically an abstract class, but isn't raising NotImplementedError
-class TestTTransport < Test::Unit::TestCase
+class TestThriftTransport < Test::Unit::TestCase
def setup
- @trans = TTransport.new
+ @trans = Thrift::Transport.new
end
def test_open?
@@ -53,19 +53,3 @@ class TestTTransport < Test::Unit::TestCase
assert_nil @trans.flush
end
end
-
-class TestTTransportDeprecation < Test::Unit::TestCase
- def setup
- @trans = TTransport.new
- end
-
- def test_open?
- assert_nil @trans.open?
- end
-
- def test_readAll
- # Implements read
- t = DummyTransport.new("hello")
- assert_equal "hello", t.read_all(5)
- end
-end \ No newline at end of file