spec/version_spec.rb in vvm-rb-1.0.5 vs spec/version_spec.rb in vvm-rb-1.0.6
- 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(/\Astart\n(v7-.+\n)+tip\z/)
+ expect(Vvm::Version.list.join("\n")).to match(/\A(v7\..+\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(/\Av7\..+\z/)
end
end
describe 'current' do
context 'current version is system' do
@@ -60,29 +60,29 @@
end
end
describe 'convert' do
it 'version to tag' do
- expect(Vvm::Version.convert('7.4.112')).to eq 'v7-4-112'
+ expect(Vvm::Version.convert('7.4.112')).to eq 'v7.4.112'
end
end
describe 'format' do
context 'tag' do
it 'return formated vim version' do
- expect(Vvm::Version.format('v7-4-112')).to eq 'v7-4-112'
+ expect(Vvm::Version.format('v7.4.112')).to eq 'v7.4.112'
end
end
context 'dicimal version' do
it 'return formated vim version' do
- expect(Vvm::Version.format('7.4a.001')).to eq 'v7-4a-001'
+ expect(Vvm::Version.format('7.4a.001')).to eq 'v7.4a.001'
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(/\Av7\..+\z/)
end
end
end
end