Sha256: a90881056bc069da6c9f37f99523c002501f1c71fa957bb454f9a00060a83090
Contents?: true
Size: 1.61 KB
Versions: 1
Compression:
Stored size: 1.61 KB
Contents
require 'spec_helper' describe 'Installer' do describe 'install' do before :all do FileUtils.rm_rf(get_src_dir) FileUtils.rm_rf(get_vims_dir) FileUtils.rm_rf(get_repos_dir) FileUtils.rm_rf(get_etc_dir) @version = 'v7-4' @installer = Installer.new(@version) @installer.dot_dir = @vvm_tmp end context 'fetch' do before :all do @installer.fetch end it 'exists vimorg dir' do expect(Dir.exists?(get_vimorg_dir)).to be_true end end context 'checkout' do before :all do @installer.checkout end it 'exists src dir' do expect(Dir.exists?(get_src_dir(@version))).to be_true end end context 'configure & make_install' do before :all do @installer.configure @installer.make_install end it 'exists vims dir' do expect(Dir.exists?(get_vims_dir(@version))).to be_true end end context 'cp_etc' do before :all do @installer.cp_etc end it 'exists etc dir' do expect(Dir.exists?(get_etc_dir)).to be_true end it 'exists login file' do expect(File.exists?(get_login_file)).to be_true end end end describe 'rebuild' do before :all do @version = 'v7-4' @installer = Installer.new(@version) @installer.dot_dir = @vvm_tmp end context 'make_clean' do before :all do @installer.make_clean end it 'not exists objects dir' do expect(Dir["#{get_src_dir(@version)}/src/objects/*"].empty?).to be_true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vvm-rb-0.0.4 | spec/installer_spec.rb |