Skip to content
Permalink
Browse files

Add post detail display markup

We make the component test pass by adding markup to display the post.

Inner green; outer red:
✘ Element .js-post-detail-title has text "Test Post"
✘ Element .js-post-detail-body has text "This post is a test!"

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...
CodingItWrong committed Jan 11, 2018
1 parent e29dcb2 commit 828a26fbd4aa7b59f5b3656fccf89b0eeab9f9e1
Showing with 5 additions and 1 deletion.
  1. +5 −1 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 828a26f

Please sign in to comment.
You can’t perform that action at this time.