Sha256: decf957fc0c84d334b05a7b6c5e996859c7e91694237902683d0fc2db1349471

Contents?: true

Size: 923 Bytes

Versions: 9

Compression:

Stored size: 923 Bytes

Contents

require 'spec_helper'

describe 'Accessor' do
  it 'can access vvm-rb home directory' do
    expect(File.exist?(dot_dir)).to be_truthy
  end

  it 'can access etc directory' do
    expect(File.exist?(etc_dir)).to be_truthy
  end

  it 'can access repos directory' do
    expect(File.exist?(repos_dir)).to be_truthy
  end

  it 'can access src directory' do
    expect(File.exist?(src_dir)).to be_truthy
  end

  it 'can access vims directory' do
    expect(File.exist?(vims_dir)).to be_truthy
  end

  it 'can access vimorg directory' do
    expect(File.exist?(vimorg_dir)).to be_truthy
  end

  it 'can access login file' do
    expect(File.exist?(login_file)).to be_truthy
  end

  context 'of current directory' do
    before { Vvm::Switcher.new(VERSION1).use }
    after { Vvm::Switcher.new('system').use }

    it 'can access current directory' do
      expect(File.exist?(current_dir)).to be_truthy
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vvm-rb-1.1.1 spec/accessor_spec.rb
vvm-rb-1.1.0 spec/accessor_spec.rb
vvm-rb-1.0.8 spec/accessor_spec.rb
vvm-rb-1.0.7 spec/accessor_spec.rb
vvm-rb-1.0.6 spec/accessor_spec.rb
vvm-rb-1.0.5 spec/accessor_spec.rb
vvm-rb-1.0.4 spec/accessor_spec.rb
vvm-rb-1.0.3 spec/accessor_spec.rb
vvm-rb-1.0.2 spec/accessor_spec.rb