Sha256: afc6afc91484a646db455d0a79f4c3559743ce47ff0ccd3ff47497cf9c6c913b

Contents?: true

Size: 929 Bytes

Versions: 3

Compression:

Stored size: 929 Bytes

Contents

require 'spec_helper'

describe 'Accesser' do
  it 'can access vvm-rb home directory' do
    expect(File.exist?(get_dot_dir)).to be_true
  end

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

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

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

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

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

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

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vvm-rb-0.2.2 spec/accesser_spec.rb
vvm-rb-0.2.1 spec/accesser_spec.rb
vvm-rb-0.2.0 spec/accesser_spec.rb