diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-20 15:24:11 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-20 15:24:11 +0200 |
commit | 9a7cd18cd11e0f435443c62fa68871768b98d248 (patch) | |
tree | 1e34d56e4f5ad7cd1908ab6155cbcd7fc60bdee5 /spec/eet_spec.rb | |
parent | 5a5e81dbf79ca4967b150ea4930255a2398ccab4 (diff) | |
download | ffi-efl-9a7cd18cd11e0f435443c62fa68871768b98d248.zip ffi-efl-9a7cd18cd11e0f435443c62fa68871768b98d248.tar.gz |
ffi-e17 renamed to ffi-efl
Diffstat (limited to 'spec/eet_spec.rb')
-rw-r--r-- | spec/eet_spec.rb | 20 |
1 files changed, 10 insertions, 10 deletions
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 |