diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-18 10:22:55 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-18 10:22:55 +0200 |
commit | 8e9d5ca59eaef7e977857ebe39c086c966c556dd (patch) | |
tree | 48dac00564ff18f5ac66069f3b4fc87dfb6b3a65 /spec/eina_hash_spec.rb | |
parent | 8ceeda9e767e3be64bcc2b41cc89e1cee3411e82 (diff) | |
download | ffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.zip ffi-efl-8e9d5ca59eaef7e977857ebe39c086c966c556dd.tar.gz |
cleanup init/shutdown specs
Diffstat (limited to 'spec/eina_hash_spec.rb')
-rw-r--r-- | spec/eina_hash_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/eina_hash_spec.rb b/spec/eina_hash_spec.rb index 48347a4..d9c6ce0 100644 --- a/spec/eina_hash_spec.rb +++ b/spec/eina_hash_spec.rb @@ -6,17 +6,17 @@ require 'efl/eina_hash' # describe Efl::EinaHash do # - before(:all) { + before(:all) do REinaHash = Efl::EinaHash::REinaHash - Efl::Eina.init.should == 1 + Efl::Eina.init @d0 = FFI::MemoryPointer.from_string "D0" @d1 = FFI::MemoryPointer.from_string "D1" @d2 = FFI::MemoryPointer.from_string "D2" @d3 = FFI::MemoryPointer.from_string "D3" - } - after(:all) { - Efl::Eina.shutdown.should == 0 - } + end + after(:all) do + Efl::Eina.shutdown + end # it "should append prepend and fetch" do h = REinaHash.new |