Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 1044 Bytes
1 | require File.dirname(__FILE__) + "/../spec_helper" |
2 | |
3 | describe Radiant do |
4 | it "should detect whether loaded via gem" do |
5 | Radiant.should respond_to(:loaded_via_gem?) |
6 | end |
7 | end |
8 | |
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) |
12 | end |
13 | |
14 | it "should have a constant for the minor revision" do |
15 | lambda { Radiant::Version::Minor }.should_not raise_error(NameError) |
16 | end |
17 | |
18 | it "should have a constant for the tiny revision" do |
19 | lambda { Radiant::Version::Tiny }.should_not raise_error(NameError) |
20 | end |
21 | |
22 | it "should have a constant for the patch revision" do |
23 | lambda { Radiant::Version::Patch }.should_not raise_error(NameError) |
24 | end |
25 | |
26 | it "should join the revisions into the version number" do |
27 | Radiant::Version.to_s.should be_kind_of(String) |
28 | Radiant::Version.to_s.should == [Radiant::Version::Major, Radiant::Version::Minor, Radiant::Version::Tiny, Radiant::Version::Patch].delete_if{|v| v.nil?}.join(".") |
29 | end |
30 | end |