summaryrefslogtreecommitdiffstats
path: root/spec/edje_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-09 14:01:57 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-09 14:01:57 +0200
commit601f74881e06a85e57d9799c57512f8b587b59fd (patch)
tree94176da1b12a625726f9cea4d02f8236a38c9046 /spec/edje_spec.rb
parente6f6ad8072532f879aaaffddebdbd0be4b749285 (diff)
downloadffi-efl-601f74881e06a85e57d9799c57512f8b587b59fd.zip
ffi-efl-601f74881e06a85e57d9799c57512f8b587b59fd.tar.gz
cleanup specs
Diffstat (limited to 'spec/edje_spec.rb')
-rw-r--r--spec/edje_spec.rb15
1 files changed, 6 insertions, 9 deletions
diff --git a/spec/edje_spec.rb b/spec/edje_spec.rb
index 483ab95..90a1660 100644
--- a/spec/edje_spec.rb
+++ b/spec/edje_spec.rb
@@ -23,13 +23,12 @@ require './spec/helper'
#
describe Efl::Edje do
#
- before(:all) { Edje = Efl::Edje }
- #
- before(:each) {
- Edje.init
+ before(:all) {
+ Edje = Efl::Edje
+ Edje.init.should == 1
}
- after(:each) {
- Edje.shutdown
+ after(:all) {
+ Edje.shutdown == 0
}
#
it "should init" do
@@ -96,7 +95,6 @@ describe Efl::Edje do
describe Efl::Edje::REdje do
before(:all) do
Efl::Evas.init
- Efl::Edje.init
realize_evas
@ed = @e.edje_object_add
@ed.file_set EDJE_FILE, "my_group"
@@ -107,8 +105,7 @@ describe Efl::Edje do
after(:all) do
@e.free
@pixels.free
- Efl::Edje.shutdown
- Efl::Evas.shutdown
+ Efl::Evas.shutdown.should==0
end
#
it "scale get/set " do