Sha256: 4e0206e9dea8b9f924aa0f1ac6409cecd180958cbdad3bdaaf5339ad97f091a1
Contents?: true
Size: 466 Bytes
Versions: 4
Compression:
Stored size: 466 Bytes
Contents
require 'spec_helper' require 'puppet-herald' require 'puppet-herald/version' describe PuppetHerald, '.version_prep' do context 'on stable version v1.2.3' do subject { PuppetHerald::version_prep '1.2.3' } it { subject.should eq '1.2.3' } end context 'on unstable version v1.2.3.pre' do subject { PuppetHerald::version_prep '1.2.3.pre' } it { subject.should match /^1\.2\.3\.pre\.v\d+\.\d+\.\d+(?:\.\d+\.g[0-9a-f]{7}(?:\.dirty)?)?$/ } end end
Version data entries
4 entries across 4 versions & 1 rubygems