THRIFT-444. rb: THRIFT-356 broke compact protocol spec
This patch cleans up the spec, removing some unncessary code.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763043 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/spec/compact_protocol_spec.rb b/lib/rb/spec/compact_protocol_spec.rb
index 78b1a2a..b9a7981 100644
--- a/lib/rb/spec/compact_protocol_spec.rb
+++ b/lib/rb/spec/compact_protocol_spec.rb
@@ -76,21 +76,10 @@
struct = CompactProtoTestStruct.new
# sets and maps don't hash well... not sure what to do here.
- struct.set_byte_map = nil
- struct.map_byte_map = nil
struct.write(proto)
-
- # puts trans.inspect
-
- struct2 = CompactProtoTestStruct.new
- struct2.instance_variables.each do |ivar|
- struct2.instance_variable_set(ivar, nil)
- end
-
- struct2.should_not == struct
- struct2.read(proto)
-
+ struct2 = CompactProtoTestStruct.new
+ struct2.read(proto)
struct2.should == struct
end