summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/ecore_spec.rb6
-rw-r--r--spec/edje_spec.rb6
-rw-r--r--spec/eet_spec.rb20
-rw-r--r--spec/evas_spec.rb24
4 files changed, 28 insertions, 28 deletions
diff --git a/spec/ecore_spec.rb b/spec/ecore_spec.rb
index 6184dba..966f9ab 100644
--- a/spec/ecore_spec.rb
+++ b/spec/ecore_spec.rb
@@ -1,11 +1,11 @@
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
-require 'e17/ecore'
+require 'efl/ecore'
#
-describe E17::Ecore do
+describe Efl::Ecore do
#
- include E17
+ include Efl
#
before(:all) do
USER_SIGNAL_CB = Proc.new do |data, type, event|
diff --git a/spec/edje_spec.rb b/spec/edje_spec.rb
index 9ec6686..3b5a98c 100644
--- a/spec/edje_spec.rb
+++ b/spec/edje_spec.rb
@@ -1,11 +1,11 @@
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
-require 'e17/edje'
+require 'efl/edje'
#
-describe E17::Edje do
+describe Efl::Edje do
#
- include E17
+ include Efl
#
it "should init" do
Edje.init.should eql 1
diff --git a/spec/eet_spec.rb b/spec/eet_spec.rb
index d45e07c..6ce5813 100644
--- a/spec/eet_spec.rb
+++ b/spec/eet_spec.rb
@@ -1,11 +1,11 @@
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
-require 'e17/eet'
+require 'efl/eet'
#
-describe E17::Eet do
+describe Efl::Eet do
#
- include E17
+ include Efl
#
FP = '/tmp/_eet.cfg'
#
@@ -28,15 +28,15 @@ describe E17::Eet do
end
#
it "should have good enums" do
- E17::API.enum_type(:eet_file_mode)[:eet_file_mode_invalid].should eql -1
- E17::API.enum_type(:eet_file_mode)[:eet_file_mode_read].should eql 0
- E17::API.enum_type(:eet_file_mode)[:eet_file_mode_write].should eql 1
- E17::API.enum_type(:eet_file_mode)[:eet_file_mode_read_write].should eql 2
+ Efl::API.enum_type(:eet_file_mode)[:eet_file_mode_invalid].should eql -1
+ Efl::API.enum_type(:eet_file_mode)[:eet_file_mode_read].should eql 0
+ Efl::API.enum_type(:eet_file_mode)[:eet_file_mode_write].should eql 1
+ Efl::API.enum_type(:eet_file_mode)[:eet_file_mode_read_write].should eql 2
end
#
it "should open and close" do
Eet.init
- f = Eet.open FP, E17::API.enum_type(:eet_file_mode)[:eet_file_mode_write]
+ f = Eet.open FP, Efl::API.enum_type(:eet_file_mode)[:eet_file_mode_write]
f.write 'fake', 'value'
f.close
Eet.shutdown
@@ -44,9 +44,9 @@ describe E17::Eet do
#
it "should be able to get file access mode" do
Eet.init
- E17::API.enum_type(:eet_file_mode).symbols.each do |m|
+ Efl::API.enum_type(:eet_file_mode).symbols.each do |m|
next if m==:eet_file_mode_invalid
- Eet.open FP, E17::API.enum_type(:eet_file_mode)[m] do |f|
+ Eet.open FP, Efl::API.enum_type(:eet_file_mode)[m] do |f|
f.mode_get.should eql m
end
end
diff --git a/spec/evas_spec.rb b/spec/evas_spec.rb
index 66c4d4c..663ca4b 100644
--- a/spec/evas_spec.rb
+++ b/spec/evas_spec.rb
@@ -1,11 +1,11 @@
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
-require 'e17/evas'
+require 'efl/evas'
#
-describe E17::Evas do
+describe Efl::Evas do
#
- include E17
+ include Efl
#
it "should init" do
Evas.init.should eql 1
@@ -20,15 +20,15 @@ describe E17::Evas do
end
#
it "evas alloc error enum is ok" do
- E17::API.enum_value(:evas_alloc_error_none).should eql 0
- E17::API.enum_value(:evas_alloc_error_fatal).should eql 1
- E17::API.enum_value(:evas_alloc_error_recovered).should eql 2
- E17::API.enum_type(:evas_alloc_error)[0].should eql :evas_alloc_error_none
- E17::API.enum_type(:evas_alloc_error)[1].should eql :evas_alloc_error_fatal
- E17::API.enum_type(:evas_alloc_error)[2].should eql :evas_alloc_error_recovered
- E17::API.enum_type(:evas_alloc_error)[:evas_alloc_error_none].should eql 0
- E17::API.enum_type(:evas_alloc_error)[:evas_alloc_error_fatal].should eql 1
- E17::API.enum_type(:evas_alloc_error)[:evas_alloc_error_recovered].should eql 2
+ Efl::API.enum_value(:evas_alloc_error_none).should eql 0
+ Efl::API.enum_value(:evas_alloc_error_fatal).should eql 1
+ Efl::API.enum_value(:evas_alloc_error_recovered).should eql 2
+ Efl::API.enum_type(:evas_alloc_error)[0].should eql :evas_alloc_error_none
+ Efl::API.enum_type(:evas_alloc_error)[1].should eql :evas_alloc_error_fatal
+ Efl::API.enum_type(:evas_alloc_error)[2].should eql :evas_alloc_error_recovered
+ Efl::API.enum_type(:evas_alloc_error)[:evas_alloc_error_none].should eql 0
+ Efl::API.enum_type(:evas_alloc_error)[:evas_alloc_error_fatal].should eql 1
+ Efl::API.enum_type(:evas_alloc_error)[:evas_alloc_error_recovered].should eql 2
end
#
it "should have no memory allocation error occured" do