spec/article_spec.rb in rollin-0.0.11 vs spec/article_spec.rb in rollin-0.0.12
- old
+ new
@@ -1,11 +1,15 @@
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 == 'My first post'
+ 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