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
radiantcms-couchrest_model-0.2.4 spec/lib/radiant_spec.rb
radiantcms-couchrest_model-0.2.2 spec/lib/radiant_spec.rb
radiantcms-couchrest_model-0.2.1 spec/lib/radiant_spec.rb
radiantcms-couchrest_model-0.2 spec/lib/radiant_spec.rb
radiantcms-couchrest_model-0.1.9 spec/lib/radiant_spec.rb
radiantcms-couchrest_model-0.1.8 spec/lib/radiant_spec.rb
radiantcms-couchrest_model-0.1.7 spec/lib/radiant_spec.rb
radiantcms-couchrest_model-0.1.6 spec/lib/radiant_spec.rb
radiantcms-couchrest_model-0.1.5 spec/lib/radiant_spec.rb
radiant-0.7.2 spec/lib/radiant_spec.rb
radiant-0.8.2 spec/lib/radiant_spec.rb
radiant-rc-0.9.0 spec/lib/radiant_spec.rb
radiant-0.8.1 spec/lib/radiant_spec.rb
radiant-0.6.5.1 spec/lib/radiant_spec.rb
radiant-0.6.5 spec/lib/radiant_spec.rb
radiant-0.6.7 spec/lib/radiant_spec.rb
radiant-0.6.6 spec/lib/radiant_spec.rb
radiant-0.6.9 spec/lib/radiant_spec.rb
radiant-0.6.8 spec/lib/radiant_spec.rb
radiant-0.7.0 spec/lib/radiant_spec.rb