Sha256: 7e7b930fc3e6456bf59698619dfb82b5697e573eee1250349041f50e5dc40b64

Contents?: true

Size: 432 Bytes

Versions: 10

Compression:

Stored size: 432 Bytes

Contents

describe Rollin::MonthArchive do
  let (:article) { Rollin::Article.new('spec/fixtures/2013_05_01_My_first_post.mk') }
  subject (:month_archive) { Rollin::MonthArchive.new(2013, 05, [ article ]) }

  it 'tells the year' do
    month_archive.year.should == 2013
  end

  it 'tells the month' do
    month_archive.month.should == 5
  end

  it 'has a list of articles' do
    month_archive.articles.first.should == article
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rollin-0.0.16 spec/month_archive_spec.rb
rollin-0.0.15 spec/month_archive_spec.rb
rollin-0.0.14 spec/month_archive_spec.rb
rollin-0.0.13 spec/month_archive_spec.rb
rollin-0.0.12 spec/month_archive_spec.rb
rollin-0.0.11 spec/month_archive_spec.rb
rollin-0.0.10 spec/month_archive_spec.rb
rollin-0.0.8 spec/month_archive_spec.rb
rollin-0.0.7 spec/month_archive_spec.rb
rollin-0.0.6 spec/month_archive_spec.rb