Land #2637, version number bump to 4.9.0-dev

bug/bundler_fix
William Vu 2013-11-13 13:20:18 -06:00
commit 94a2f52ccc
No known key found for this signature in database
GPG Key ID: E761DCB4C1629024
2 changed files with 44 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class Framework
#
Major = 4
Minor = 8
Minor = 9
Point = 0
Release = "-dev"

View File

@ -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