assert @response.body.starts_with?('%PDF')
end
+ def test_show_invalid_should_respond_with_404
+ get :show, :id => 999
+ assert_response 404
+ end
+
def test_get_new
@request.session[:user_id] = 2
get :new, :project_id => 1, :tracker_id => 1
assert_response 302
end
+ def test_destroy_invalid_should_respond_with_404
+ @request.session[:user_id] = 2
+ assert_no_difference 'Issue.count' do
+ delete :destroy, :id => 999
+ end
+ assert_response 404
+ end
+
def test_default_search_scope
get :index
assert_tag :div, :attributes => {:id => 'quick-search'},