Land #2637, version number bump to 4.9.0-dev
commit
94a2f52ccc
|
@ -17,7 +17,7 @@ class Framework
|
|||
#
|
||||
|
||||
Major = 4
|
||||
Minor = 8
|
||||
Minor = 9
|
||||
Point = 0
|
||||
Release = "-dev"
|
||||
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
# -*- coding:binary -*-
|
||||
|
||||
require 'spec_helper'
|
||||
require 'msf/core/framework'
|
||||
|
||||
describe Msf::Framework do
|
||||
|
||||
describe "#version" do
|
||||
CURRENT_VERSION = "4.9.0-dev"
|
||||
|
||||
subject do
|
||||
described_class.new
|
||||
end
|
||||
|
||||
it "should return the current version" do
|
||||
subject.version.should == CURRENT_VERSION
|
||||
end
|
||||
|
||||
it "should return the Version constant" do
|
||||
described_class.const_get(:Version).should == subject.version
|
||||
end
|
||||
|
||||
it "should return the concatenation of Major.Minor.Point-Release" do
|
||||
major,minor,point,release = subject.version.split(/[.-]/)
|
||||
major.to_i.should == described_class::Major
|
||||
minor.to_i.should == described_class::Minor
|
||||
point.to_i.should == described_class::Point
|
||||
"-#{release}".should == described_class::Release
|
||||
end
|
||||
|
||||
pending "conform to SemVer 2.0 syntax: http://semver.org/" do
|
||||
it "should have constants that correspond to SemVer standards" do
|
||||
major,minor,patch,label = subject.version.split(/[.-]/)
|
||||
major.to_i.should == described_class::VERSION::MAJOR
|
||||
minor.to_i.should == described_class::VERSION::MINOR
|
||||
point.to_i.should == described_class::VERSION::POINT
|
||||
label.to_s.should == described_class::VERSION::LABEL
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in New Issue