commit | 1cfd693f3e4cbb697c0942299c43c081dfa3c820 | [log] [tgz] |
---|---|---|
author | Kevin Clark <kclark@apache.org> | Wed Jun 18 01:13:58 2008 +0000 |
committer | Kevin Clark <kclark@apache.org> | Wed Jun 18 01:13:58 2008 +0000 |
tree | 5e60224b8032409a94e047efca6ec28db6bf4a17 | |
parent | a7613dde90187112c5655ecdb6967d55d8ad5b1e [diff] [blame] |
Add new spec for properly initializing boolean values git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668985 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/spec/struct_spec.rb b/lib/rb/spec/struct_spec.rb index e57d555..16c3b1f 100644 --- a/lib/rb/spec/struct_spec.rb +++ b/lib/rb/spec/struct_spec.rb
@@ -47,6 +47,11 @@ end end + it "should properly initialize boolean values" do + struct = BoolStruct.new(:yesno => false) + struct.yesno.should be_false + end + it "should have proper == semantics" do Foo.new.should_not == Hello.new Foo.new.should == Foo.new