Sha256: 2a3a4eea31b6ac65bbb0142eb7bfbbd46c5429c662be24aa91fb62b6a55127be
Contents?: true
Size: 559 Bytes
Versions: 4
Compression:
Stored size: 559 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 '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 == 2013 end it 'tells article month' do article.month == 5 end it 'tells article day' do article.day == 1 end it 'tells article date' do article.date.should == Date.new(2013, 5, 1) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rollin-0.0.10 | spec/article_spec.rb |
rollin-0.0.8 | spec/article_spec.rb |
rollin-0.0.7 | spec/article_spec.rb |
rollin-0.0.6 | spec/article_spec.rb |