spec/version_spec.rb in vvm-rb-1.0.7 vs spec/version_spec.rb in vvm-rb-1.0.8

- old
+ new

@@ -8,11 +8,11 @@ allow(File).to receive(:exist?).and_return(false) expect(proc { Vvm::Version.list }).to raise_error end it 'echo available vim versions' do - expect(Vvm::Version.list.join("\n")).to match(/\A(v7\..+\n)+tip\z/) + expect(Vvm::Version.list.join("\n")).to match(/\A(v\d\..+\n)+tip\z/) end end describe 'versions' do context 'vims dirctory exists' do @@ -38,11 +38,11 @@ end end describe 'latest' do it 'return latest vim version' do - expect(Vvm::Version.latest).to match(/\Av7\..+\z/) + expect(Vvm::Version.latest).to match(/\Av\d\..+\z/) end end describe 'current' do context 'current version is system' do @@ -79,10 +79,10 @@ end end context 'latest' do it 'return latest vim version' do - expect(Vvm::Version.format('latest')).to match(/\Av7\..+\z/) + expect(Vvm::Version.format('latest')).to match(/\Av\d\..+\z/) end end end end