Sha256: e3a390b3926658bfa20e86c2a3a9d9f61154262e7b6b5b48ce2e0aece1660519

Contents?: true

Size: 783 Bytes

Versions: 64

Compression:

Stored size: 783 Bytes

Contents

require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper'
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/common'
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/shared/pwd'

describe "Dir.pwd" do
  it_behaves_like :dir_pwd, :pwd
  
  # RHO TODO: disable until encoding bug will be fixed
=begin
  it "correctly displays dirs with unicode characters in them" do
    DirSpecs.clear_dirs

    begin
      old_kcode, $KCODE=$KCODE,'u'
      str = [0xe9].pack 'U' #Unicode �
      Dir.mkdir str
      File.exist?(str).should == true

      old_pwd = Dir.pwd
      Dir.chdir(str) { Dir.pwd.should == File.join(old_pwd, str) }
    ensure
      DirSpecs.clear_dirs
      $KCODE=old_kcode
    end
  end
=end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
rhodes-2.2.6 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.6.beta.1 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.5 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.5.beta.3 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.5.beta.2 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.5.beta.1 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.4.beta.1 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.3 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.3.beta.1 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.2 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.2.beta.1 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.1 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.1.beta.2 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.1.beta.1 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.0 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.0.beta.3 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.0.beta.2 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.2.0.beta.1 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.1.0 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-2.0.3 spec/framework_spec/app/spec/core/dir/pwd_spec.rb