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-3.1.1 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.1.1.beta spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.1.0 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.1.0.beta.5 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.1.0.beta.4 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.1.0.beta.3 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.1.0.beta.2 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.1.0.beta.1 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.0.2 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.0.2.beta.1 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.0.1 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.0.1.beta.8 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.0.1.beta.7 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.0.1.beta.6 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.0.1.beta.5 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.0.1.beta.4 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.0.1.beta.3 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.0.1.beta.2 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.0.0 spec/framework_spec/app/spec/core/dir/pwd_spec.rb
rhodes-3.0.0.beta.7 spec/framework_spec/app/spec/core/dir/pwd_spec.rb