Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 377
- Log:
Various files are in the gem, but apparently not in the source distribution
on GitHub. These have been copied in from the working gem.
- Author:
- rool
- Date:
- Mon Mar 21 13:46:18 +0000 2011
- Size:
- 955 Bytes
1 | require File.dirname(__FILE__) + '/../spec_helper' |
2 | |
3 | describe ArchivePage do |
4 | dataset :archive |
5 | |
6 | before :each do |
7 | @page = pages(:archive) |
8 | end |
9 | |
10 | it "should scope child URLs by date" do |
11 | pages(:article_1).url.should == '/archive/2000/01/01/article-1/' |
12 | end |
13 | |
14 | it "should scope unpublished children by the current date" do |
15 | pages(:draft_article).url.should == '/archive/' + Time.now.strftime('%Y/%m/%d') + '/draft-article/' |
16 | end |
17 | |
18 | it "should find the year index" do |
19 | @page.find_by_url('/archive/2000/').should == pages(:year_index) |
20 | end |
21 | |
22 | it "should find the month index" do |
23 | @page.find_by_url('/archive/2000/06/').should == pages(:month_index) |
24 | end |
25 | |
26 | it "should find the day index" do |
27 | @page.find_by_url('/archive/2000/06/09/').should == pages(:day_index) |
28 | end |
29 | |
30 | it "should find child URLs from the homepage" do |
31 | pages(:home).find_by_url('/archive/2000/01/01/article-1/').should == pages(:article_1) |
32 | end |
33 | end |