diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-27 06:27:47 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-27 06:27:47 +0200 |
commit | 94434474b1c0edd25e0e2423635c6bc12e574e18 (patch) | |
tree | 260fa051878a1d015500edd0988f9bb41ce08710 /spec/eet_spec.rb | |
parent | dbab4c802acbcd62262efd44f5415285a39de011 (diff) | |
download | ffi-efl-94434474b1c0edd25e0e2423635c6bc12e574e18.zip ffi-efl-94434474b1c0edd25e0e2423635c6bc12e574e18.tar.gz |
module Efl::API renamed to Efl::FFI
Diffstat (limited to 'spec/eet_spec.rb')
-rw-r--r-- | spec/eet_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/eet_spec.rb b/spec/eet_spec.rb index 188f976..a4c1997 100644 --- a/spec/eet_spec.rb +++ b/spec/eet_spec.rb @@ -28,15 +28,15 @@ describe Efl::Eet do end # it "should have good enums" do - 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 + Efl::FFI.enum_type(:eet_file_mode)[:eet_file_mode_invalid].should eql -1 + Efl::FFI.enum_type(:eet_file_mode)[:eet_file_mode_read].should eql 0 + Efl::FFI.enum_type(:eet_file_mode)[:eet_file_mode_write].should eql 1 + Efl::FFI.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, Efl::API.enum_type(:eet_file_mode)[:eet_file_mode_write] + f = Eet.open FP, Efl::FFI.enum_type(:eet_file_mode)[:eet_file_mode_write] f.write 'fake', 'value' f.close Eet.shutdown @@ -44,9 +44,9 @@ describe Efl::Eet do # it "should be able to get file access mode" do Eet.init - Efl::API.enum_type(:eet_file_mode).symbols.each do |m| + Efl::FFI.enum_type(:eet_file_mode).symbols.each do |m| next if m==:eet_file_mode_invalid - Eet.open FP, Efl::API.enum_type(:eet_file_mode)[m] do |f| + Eet.open FP, Efl::FFI.enum_type(:eet_file_mode)[m] do |f| f.mode_get.should eql m end end |