Browse files

Fix indentation problem with posts index.

  • Loading branch information...
1 parent a626dd5 commit 8ad02f52a2733379d21e9b87671b26db38aa4a41 @nathanaelkane nathanaelkane committed with jasoncodes Jun 11, 2011
Showing with 8 additions and 4 deletions.
  1. +4 −4 app/views/posts/index.html.haml
  2. +4 −0 spec/acceptance/posts_spec.rb
View
8 app/views/posts/index.html.haml
@@ -1,7 +1,7 @@
= render 'feed_link'
%section#posts
-- if collection.present?
- = render collection, :summary => true
-- else
- No posts found.
+ - if collection.present?
+ = render collection, :summary => true
+ - else
+ No posts found.
View
4 spec/acceptance/posts_spec.rb
@@ -39,6 +39,10 @@
page.should_not have_content('This is a custom title') # title
page.should_not have_content('Content goes here.') # summary
end
+
+ it 'should have the correct number of posts' do
+ all('section#posts article.post').size.should == 4
+ end
end
context 'Posts#index with no posts' do

0 comments on commit 8ad02f5

Please sign in to comment.