summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/eina_log_spec.rb28
-rw-r--r--spec/evas_spec.rb2
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