1 require File.dirname(__FILE__) + "/../spec_helper"
4 it "should detect whether loaded via gem" do
5 Radiant.should respond_to(:loaded_via_gem?)
9 describe Radiant::Version do
10 it "should have a constant for the major revision" do
11 lambda { Radiant::Version::Major }.should_not raise_error(NameError)
14 it "should have a constant for the minor revision" do
15 lambda { Radiant::Version::Minor }.should_not raise_error(NameError)
18 it "should have a constant for the tiny revision" do
19 lambda { Radiant::Version::Tiny }.should_not raise_error(NameError)
22 it "should join the revisions into the version number" do
23 Radiant::Version.to_s.should be_kind_of(String)
24 Radiant::Version.to_s.should == [Radiant::Version::Major, Radiant::Version::Minor, Radiant::Version::Tiny].join(".")