diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-19 08:53:35 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-19 08:53:35 +0200 |
commit | a3fbc22500199376091e37280c0dc336cab2da51 (patch) | |
tree | a2771e58b4207d176048b9371e4355a5f448e7c9 /spec | |
parent | 055aea9c81c370af51ff6331f626ca470f41c2dd (diff) | |
download | ffi-efl-a3fbc22500199376091e37280c0dc336cab2da51.zip ffi-efl-a3fbc22500199376091e37280c0dc336cab2da51.tar.gz |
fix eina_log spec + type within evas_spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/eina_log_spec.rb | 28 | ||||
-rw-r--r-- | spec/evas_spec.rb | 2 |
2 files changed, 9 insertions, 21 deletions
diff --git a/spec/eina_log_spec.rb b/spec/eina_log_spec.rb index 9ecdc61..0f606b0 100644 --- a/spec/eina_log_spec.rb +++ b/spec/eina_log_spec.rb @@ -17,43 +17,31 @@ describe Efl::EinaLog do it "level set/get" do EinaLog.level_set 2 EinaLog.level_get.should == 2 - EinaLog.level_set 3 - EinaLog.level_get.should == 3 + EinaLog.level = 3 + EinaLog.level.should == 3 end # it "color_disable set/get" do - EinaLog.color_disable_set true - EinaLog.color_disable_get.should be_true - EinaLog.color_disable_set false - EinaLog.color_disable_get.should be_false + bool_check EinaLog, 'color_disable' end # it "file_disable set/get" do - EinaLog.file_disable_set true - EinaLog.file_disable_get.should be_true - EinaLog.file_disable_set false - EinaLog.file_disable_get.should be_false + bool_check EinaLog, 'file_disable' end # it "function_disable set/get" do - EinaLog.function_disable_set true - EinaLog.function_disable_get.should be_true - EinaLog.function_disable_set false - EinaLog.function_disable_get.should be_false + bool_check EinaLog, 'function_disable' end # it "abort_on_critical set/get" do - EinaLog.abort_on_critical_set true - EinaLog.abort_on_critical_get.should be_true - EinaLog.abort_on_critical_set false - EinaLog.abort_on_critical_get.should be_false + bool_check EinaLog, 'abort_on_critical' end # it "abort_on_critical_level set/get" do EinaLog.abort_on_critical_level_set 2 EinaLog.abort_on_critical_level_get.should == 2 - EinaLog.abort_on_critical_level_set 3 - EinaLog.abort_on_critical_level_get.should == 3 + EinaLog.abort_on_critical_level = 3 + EinaLog.abort_on_critical_level.should == 3 end # it "domain register, unregister, level set/get" do diff --git a/spec/evas_spec.rb b/spec/evas_spec.rb index 9320711..4b69925 100644 --- a/spec/evas_spec.rb +++ b/spec/evas_spec.rb @@ -520,7 +520,7 @@ describe "Efl::Evas #{Efl::Evas.version.full}" do @o.anti_alias_get.should be_false end # - it "sccale set/get " do + it "scale set/get " do @o.scale_set 1.5 @o.scale_get.should == 1.5 @o.scale= 1.6 |