diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-01 09:13:08 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-01 09:13:08 +0200 |
commit | f95e9909e93dd1ddb9d19ccd36be34a3a84ddd44 (patch) | |
tree | 8a9db1f0f59e6e898db12deb6943a9c44aa8bf8a /spec | |
parent | bb7b6c52a50e65fb361ede8f26039b5822b9a0cb (diff) | |
download | ffi-efl-f95e9909e93dd1ddb9d19ccd36be34a3a84ddd44.zip ffi-efl-f95e9909e93dd1ddb9d19ccd36be34a3a84ddd44.tar.gz |
fix AutoPointer usage + use it for REinaHash
Diffstat (limited to 'spec')
-rw-r--r-- | spec/eina_hash_spec.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/eina_hash_spec.rb b/spec/eina_hash_spec.rb index 5efc062..8473fd7 100644 --- a/spec/eina_hash_spec.rb +++ b/spec/eina_hash_spec.rb @@ -33,7 +33,6 @@ describe Efl::EinaHash do v.read_string.empty?.should be_false } cpt.should eql 4 - h.free end # it "should be able to convert into ruby Hash from NULL pointer" do @@ -86,7 +85,6 @@ describe Efl::EinaHash do rh2['k1'].should eql 'D1' rh2['k2'].should eql 'D2' rh2['k3'].should eql 'D3' - h.free end # it "should be able to convert into ruby Hash from non empty REinaHash pointer" do @@ -105,7 +103,6 @@ describe Efl::EinaHash do h['k3'].read_string.should eql "D3" rh = Hash.from_eina_hash h.to_ptr rh.length.should eql 4 - h.free end # it "should be able to convert into ruby Hash from non empty REinaHash pointer, with key from string" do @@ -128,7 +125,6 @@ describe Efl::EinaHash do rh['k1'].read_string.should eql "D1" rh['k2'].read_string.should eql "D2" rh['k3'].read_string.should eql "D3" - h.free end # it "should be able to convert into ruby Hash from non empty REinaHash pointer, with key from string block" do @@ -153,7 +149,6 @@ describe Efl::EinaHash do rh['k1'].read_string.should eql "D1" rh['k2'].read_string.should eql "D2" rh['k3'].read_string.should eql "D3" - h.free end # it "should be able to build from ruby Hash" do @@ -175,7 +170,6 @@ describe Efl::EinaHash do h[k1].read_string.should eql "D1" h[k2].read_string.should eql "D2" h[k3].read_string.should eql "D3" - h.free end # it "alternate constructor should work" do |