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
diff --git a/test/rb/core/test_backwards_compatability.rb b/test/rb/core/test_backwards_compatability.rb
index c674752..2e5330d 100644
--- a/test/rb/core/test_backwards_compatability.rb
+++ b/test/rb/core/test_backwards_compatability.rb
@@ -2,7 +2,7 @@
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
similarity index 69%
rename from test/rb/core/transport/test_ttransport.rb
rename to test/rb/core/transport/test_transport.rb
index 366389b..7a62e5a 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 @@
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 @@
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