Sha256: 516be0064dce3e8508b3e8def902da47b6fd28a58793f0fcf346b0e55d363066

Contents?: true

Size: 723 Bytes

Versions: 2

Compression:

Stored size: 723 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Enygma::Version do
  
  it "should have MAJOR, MINOR, TINY, and STRING constants" do
    Enygma::Version.const_defined?(:MAJOR).should be_true
    Enygma::Version.const_defined?(:MINOR).should be_true
    Enygma::Version.const_defined?(:TINY).should be_true
    Enygma::Version.const_defined?(:STRING).should be_true
  end
  
  it "should define STRING to be 'MAJOR.MINOR.TINY'" do
    Enygma::Version::STRING.should == [ Enygma::Version::MAJOR, Enygma::Version::MINOR, Enygma::Version::TINY ].join('.')
  end
  
  it "should define Enygma.version to be Enygma::Version::STRING" do
    Enygma.version.should == Enygma::Version::STRING
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sander6-enygma-0.1.0 spec/version_spec.rb
sander6-enygma-0.1.1 spec/version_spec.rb