Please sign in to comment.
Send post form data to save action
We get the component test to pass by making the input an Ember input helper, retrieving the saved value in it, and sending that in an object to the `save` action closure. Inner green; outer green The unit and acceptance test both pass. We've successfully let our acceptance test drive out the behavior of this feature! Interestingly, note that the tests didn't drive us to actually add attributes to our Post model. Apparently Ember will allow assigning arbitrary attributes to a model in-memory and will preserve them. But we know we need those attributes to be defined. The TDD way to approach this problem is to find the test that will demonstrate the problem with the attributes not being defined. In this case, a test of the post retrieval page pulling up a post from the backend will show the problem.
- Loading branch information...
Showing with 7 additions and 3 deletions.