Permalink
Browse files

added clarification

  • Loading branch information...
1 parent 10f3d69 commit b7e71eb9793b270cabe1fbc89f83d15479ae8268 @zenspider zenspider committed Sep 17, 2011
Showing with 7 additions and 5 deletions.
  1. +7 −5 lessons/14.yaml
View
12 lessons/14.yaml
@@ -25,11 +25,13 @@ steps: |
Add the following method to `Vote` in `app/controllers/votes_controller.rb`:
<pre class="code">
- def create
- topic = Topic.find(params[:topic_id])
- vote = topic.votes.build
- vote.save!
- redirect_to(topics_path)
+ class VotesControllerTest < ActionController::TestCase
+ def create
+ topic = Topic.find(params[:topic_id])
+ vote = topic.votes.build
+ vote.save!
+ redirect_to(topics_path)
+ end
end
</pre>

0 comments on commit b7e71eb

Please sign in to comment.