# TODO Replace this with your actual tests
def test_show_nonexist_votes_per_interval
- assert_nothing_raised { get :votes_per_interval, { :id => 42 } }
+ assert_raise(ActiveRecord::RecordNotFound) { get :votes_per_interval, { :id => 42 } }
end
def test_show_nonexist_borda_bar
- assert_nothing_raised { get :borda_bar, { :id => 42 } }
+ assert_raise(ActiveRecord::RecordNotFound) { get :borda_bar, { :id => 42 } }
end
def test_show_nonexist_choices_positions
- assert_nothing_raised { get :choices_positions, { :id => 42 } }
+ assert_raise(ActiveRecord::RecordNotFound) { get :choices_positions, { :id => 42 } }
end
def test_show_empty_votes_per_interval