summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-02 23:46:49 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-02 23:46:49 +0200
commita4bcdf9905fcfd4ddd97dcb49a327b963986f9dc (patch)
tree6727a327beb3829a9f421c801581ee06602ae535 /spec
parentedd4c24ff2c0a5cf62a32e742010eb47574b5abb (diff)
downloadffi-efl-a4bcdf9905fcfd4ddd97dcb49a327b963986f9dc.zip
ffi-efl-a4bcdf9905fcfd4ddd97dcb49a327b963986f9dc.tar.gz
evas : cleanup REvas#initialize and REvasObject#initialize, update specs
Diffstat (limited to 'spec')
-rw-r--r--spec/evas_spec.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/spec/evas_spec.rb b/spec/evas_spec.rb
index 529784a..a4adabb 100644
--- a/spec/evas_spec.rb
+++ b/spec/evas_spec.rb
@@ -80,19 +80,15 @@ describe Efl::Evas do
it "should be able to create and destroy evas" do
e1 = Evas::REvas.new
e1.address.should_not == 0
- e2 = Evas::REvas.new e1
+ e2 = Evas::REvas.new e1.to_ptr
e1.address.should == e2.address
- e3 = Evas::REvas.new e1.to_ptr
- e1.address.should == e3.address
- e2.address.should == e3.address
(e1==e2).should be_false
- (e2==e3).should be_false
- (e1==e3).should be_false
(e1===e2).should be_true
- (e2===e3).should be_true
- (e1===e3).should be_true
+ e1.free
e1.free
e1.to_ptr.should be_nil
+ e2.free
+ e2.free
e4 = Evas::REvas.new Evas.evas_new
e4.address.should_not == 0
e5 = e4.dup