Skip to content

Commit

Permalink
Add post detail display markup
Browse files Browse the repository at this point in the history
We make the component test pass by adding markup to display the post.

Inner green; outer red: Title not found

The acceptance test still has the same error! Why's that? Well, we're not actually saving the post when we click save, and we aren't loading the post on the show page.
  • Loading branch information
Josh Justice committed Jan 12, 2018
1 parent 49e4a91 commit cdfc232
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/templates/components/post-detail.hbs
@@ -1 +1,5 @@
{{yield}}
<h2 class="js-post-detail-title">{{post.title}}</h2>

<div class="js-post-detail-body">
{{post.body}}
</div>

0 comments on commit cdfc232

Please sign in to comment.