Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added clarification

  • Loading branch information...
commit b7e71eb9793b270cabe1fbc89f83d15479ae8268 1 parent 10f3d69
@zenspider zenspider authored
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>
Please sign in to comment.
Something went wrong with that request. Please try again.