diff options
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 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 |