search for: vote_path

Displaying 1 result from an estimated 1 matches for "vote_path".

Did you mean: note_path
2008 Feb 05
1
Functional Test has error when testing controller updates_attribute of its parrent.
...39;Vote.count'') do post :create, {:vote => {:vote_value => 5, :user_id => users(:nick).id, :entry_id => entries(:BmxEntry).id}}, :user_id => users(:nick).id end assert_redirected_to vote_path(assigns(:vote)) end end This tests the :create action of the vote controller which looks like this. def create @vote = Vote.new(params[:vote]) respond_to do |format| if @vote.save # Update the entry vote count and vote total columns @vote.entry.vote_count ||= 0...