Sha256: fc84c216ec312b3a2af4fdab1d68c1ba6ca289226608aa58d190301f377e1536
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
# # Author:: Seth Chisamore (<schisamo@opscode.com>) # Copyright:: Copyright (c) 2013 Opscode, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # shared_examples "Basic SemVer" do it_has_behavior "parses valid version strings", { "1.2.3" => { :major => 1, :minor => 2, :patch => 3, :prerelease => nil, :build => nil, :release? => true, :prerelease? => false, :build? => false, :release_build? => false, :prerelease_build? => false } } it_has_behavior "rejects invalid version strings", { "a.1.1" => "non-numeric MAJOR", "1.a.1" => "non-numeric MINOR", "1.1.a" => "non-numeric PATCH" } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mixlib-versioning-1.0.0 | spec/support/shared_examples/basic_semver.rb |