spec/uninstaller_spec.rb in vvm-rb-0.0.5 vs spec/uninstaller_spec.rb in vvm-rb-0.0.6

- old
+ new

@@ -3,27 +3,22 @@ describe 'Uninstaller' do describe 'uninstall' do context 'vim version is currently used' do before :all do version = 'v7-4' - s = Switcher.new(version) - s.dot_dir = @vvm_tmp - s.use + Switcher.new(version).use @uninstaller = Uninstaller.new(version) - @uninstaller.dot_dir = @vvm_tmp end it 'raise error' do expect(proc { @uninstaller.uninstall }).to raise_error end end context 'can uninstall version' do before :all do @version = 'v7-3-969' - @uninstaller = Uninstaller.new(@version) - @uninstaller.dot_dir = @vvm_tmp - @uninstaller.uninstall + Uninstaller.new(@version).uninstall end it 'delete src dir' do expect(File.exists?(get_src_dir(@version))).not_to be_true end