Sha256: 4b39600da1aaaf534fdcfc735d29ed3cb48cc941ed0970ad196e35afc04736b4
Contents?: true
Size: 613 Bytes
Versions: 2
Compression:
Stored size: 613 Bytes
Contents
require 'spec_helper' describe Rollin::YearArchive do let (:article) { Rollin::Article.new('spec/fixtures/2013_05_01_My_first_post.mk') } subject (:month_archive) { Rollin::MonthArchive.new(2013, 05, [ article ]) } subject (:year_archive) { Rollin::YearArchive.new(2013, [ month_archive ]) } it 'tells the year' do year_archive.year.should == 2013 end it 'has monthly archives' do year_archive.monthly_archive.size.should == 1 year_archive.monthly_archive.first.should == month_archive end it 'has a list of articles' do year_archive.articles.first.should == article end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rollin-0.0.16 | spec/annual_archive_spec.rb |
rollin-0.0.15 | spec/annual_archive_spec.rb |