Sha256: b74a36a103c08b2f82a2246054f88dd42c465c975c37e1f8e728d4175c8c3a75

Contents?: true

Size: 861 Bytes

Versions: 22

Compression:

Stored size: 861 Bytes

Contents

require File.dirname(__FILE__) + "/../spec_helper"

describe Radiant do
  it "should detect whether loaded via gem" do
    Radiant.should respond_to(:loaded_via_gem?)
  end
end

describe Radiant::Version do
  it "should have a constant for the major revision" do
    lambda { Radiant::Version::Major }.should_not raise_error(NameError)
  end
  
  it "should have a constant for the minor revision" do
    lambda { Radiant::Version::Minor }.should_not raise_error(NameError)
  end

  it "should have a constant for the tiny revision" do
    lambda { Radiant::Version::Tiny }.should_not raise_error(NameError)
  end
  
  it "should join the revisions into the version number" do
    Radiant::Version.to_s.should be_kind_of(String)
    Radiant::Version.to_s.should == [Radiant::Version::Major, Radiant::Version::Minor, Radiant::Version::Tiny].join(".") 
  end
end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
radiant-0.7.1 spec/lib/radiant_spec.rb
radiant-0.8.0 spec/lib/radiant_spec.rb