commit | 5af64f03464b927bdc329065b24a063c02fe8412 | [log] [tgz] |
---|---|---|
author | Bryan Duxbury <bryanduxbury@apache.org> | 周三 2月 17 22:27:27 2010 +0000 |
committer | Bryan Duxbury <bryanduxbury@apache.org> | 周三 2月 17 22:27:27 2010 +0000 |
tree | 35b1d05dca0514e0d91eb7ba6a4a866ffe7730b5 | |
parent | cd43a06405c806d7ff928262da29703cde7e764f [diff] [blame] |
THRIFT-707. Support old-style constructors for Union structs git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@911199 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/spec/union_spec.rb b/lib/rb/spec/union_spec.rb index 4835288..07a3f94 100644 --- a/lib/rb/spec/union_spec.rb +++ b/lib/rb/spec/union_spec.rb
@@ -141,5 +141,11 @@ swu2.read(proto) swu2.should == swu end + + it "should support old style constructor" do + union = My_union.new(:integer32 => 26) + union.get_set_field.should == :integer32 + union.get_value.should == 26 + end end end