summaryrefslogtreecommitdiffstats
path: root/spec/eet_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-04 23:42:07 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-04 23:42:07 +0200
commite4baccaefd209a25daa3ff8d5277fe86aca1d379 (patch)
treeeb2744b7a8624a7538cb0224d40879074c819653 /spec/eet_spec.rb
parent3974ea1fb3734cbf4150c759eebdf8a93d77dc8b (diff)
downloadffi-efl-e4baccaefd209a25daa3ff8d5277fe86aca1d379.zip
ffi-efl-e4baccaefd209a25daa3ff8d5277fe86aca1d379.tar.gz
FFI are in separate namespaces (Efl::Evas::Native), ruby classes are in upper level (Efl::Evas)seperate-natives
Diffstat (limited to 'spec/eet_spec.rb')
-rw-r--r--spec/eet_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/eet_spec.rb b/spec/eet_spec.rb
index a0c195c..89da878 100644
--- a/spec/eet_spec.rb
+++ b/spec/eet_spec.rb
@@ -31,10 +31,10 @@ describe Efl::Eet do
end
#
it "should have good enums" do
- Eet.enum_type(:eet_file_mode)[:eet_file_mode_invalid].should == -1
- Eet.enum_type(:eet_file_mode)[:eet_file_mode_read].should == 0
- Eet.enum_type(:eet_file_mode)[:eet_file_mode_write].should == 1
- Eet.enum_type(:eet_file_mode)[:eet_file_mode_read_write].should == 2
+ Eet::Native.enum_type(:eet_file_mode)[:eet_file_mode_invalid].should == -1
+ Eet::Native.enum_type(:eet_file_mode)[:eet_file_mode_read].should == 0
+ Eet::Native.enum_type(:eet_file_mode)[:eet_file_mode_write].should == 1
+ Eet::Native.enum_type(:eet_file_mode)[:eet_file_mode_read_write].should == 2
end
#
describe Efl::Eet::REetFile do
@@ -42,15 +42,15 @@ describe Efl::Eet do
after(:each) { Eet.shutdown }
#
it "should open and close" do
- f = REetFile.open FP, Eet.enum_type(:eet_file_mode)[:eet_file_mode_write]
+ f = REetFile.open FP, Eet::Native.enum_type(:eet_file_mode)[:eet_file_mode_write]
f.write 'fake', 'value'
f.close
end
#
it "should be able to get file access mode" do
- Eet.enum_type(:eet_file_mode).symbols.each do |m|
+ Eet::Native.enum_type(:eet_file_mode).symbols.each do |m|
next if m==:eet_file_mode_invalid
- REetFile.open FP, Eet.enum_type(:eet_file_mode)[m] do |f|
+ REetFile.open FP, Eet::Native.enum_type(:eet_file_mode)[m] do |f|
f.mode_get.should == m
end
end