Sha256: 30778d6fbaea2c2341da13111ffc2176b05760f06b8fff8abdaa877704b4121a

Contents?: true

Size: 737 Bytes

Versions: 5

Compression:

Stored size: 737 Bytes

Contents

require 'spec_helper'

describe 'Accessor' do
  it 'can access nvvm 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 repo directory' do
    expect(File.exist?(repo_dir)).to be_truthy
  end

  it 'can access src directory' do
    expect(File.exist?(src_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 { Nvvm::Switcher.new(VERSION1).use }
    after { Nvvm::Switcher.new('system').use }

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nvvm-0.5.0 spec/accessor_spec.rb
nvvm-0.4.0 spec/accessor_spec.rb
nvvm-0.3.0 spec/accessor_spec.rb
nvvm-0.2.0 spec/accessor_spec.rb
nvvm-0.1.1 spec/accessor_spec.rb