git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668979
13f79535-47bb-0310-9956-
ffa450edef68
struct.complex = {5 => {"foo" => 1.23}}
struct.write(prot)
end
+
+ it "should raise an exception if presented with an unknown container" do
+ # yeah this is silly, but I'm going for code coverage here
+ struct = Foo.new
+ lambda { struct.send :write_container, nil, nil, {:type => "foo"} }.should raise_error(StandardError, "Not a container type: foo")
+ end
end