Sha256: 3c873b1e7c0ec2c3c955f6c54ffc094ee4947aeb832cec7913651662b4db29e9
Contents?: true
Size: 747 Bytes
Versions: 5
Compression:
Stored size: 747 Bytes
Contents
require './spec/spec_helper' describe Rollin::Article do subject (:article) { Rollin::Article.new('spec/fixtures/articles/2013_05_01_My_first_post.mk') } it 'tells article id' do article.id.should == '2013_05_01_My_first_post' end it 'tells article title' do article.title.should == 'My first post' end it 'compiles article body to html' do article.body.should == "<h2>This is my first post</h2>\n\n<p>And here we go!</p>\n" end it 'tells article year' do article.year.should == 2013 end it 'tells article month' do article.month.should == 5 end it 'tells article day' do article.day.should == 1 end it 'tells article date' do article.date.should == Date.new(2013, 5, 1) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rollin-0.0.16 | spec/article_spec.rb |
rollin-0.0.15 | spec/article_spec.rb |
rollin-0.0.14 | spec/article_spec.rb |
rollin-0.0.13 | spec/article_spec.rb |
rollin-0.0.12 | spec/article_spec.rb |