aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/application_controller.rb2
-rw-r--r--spec/controllers/request_controller_spec.rb10
2 files changed, 11 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 4e2afed5a..f3406ee8a 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -444,7 +444,7 @@ class ApplicationController < ActionController::Base
statuses << ['latest_status:rejected', 'latest_status:not_held']
end
if params[:latest_status].include? "awaiting"
- statuses << ['latest_status:waiting_response', 'latest_status:waiting_clarification', 'waiting_classification:true']
+ statuses << ['latest_status:waiting_response', 'latest_status:waiting_clarification', 'waiting_classification:true', 'latest_status:internal_review','latest_status:gone_postal', 'latest_status:error_message', 'latest_status:requires_admin']
end
if params[:latest_status].include? "internal_review"
statuses << ['status:internal_review']
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb
index 18cb354b9..52fea03b5 100644
--- a/spec/controllers/request_controller_spec.rb
+++ b/spec/controllers/request_controller_spec.rb
@@ -38,6 +38,16 @@ describe RequestController, "when listing recent requests" do
get :list, :view => 'all', :request_date_after => '13/10/2007', :request_date_before => '01/11/2007'
assigns[:list_results].size.should == 2
end
+
+ it "should list internal_review requests as unresolved ones" do
+ get :list, :view => 'awaiting'
+ assigns[:list_results].size.should == 0
+ event = info_request_events(:useless_incoming_message_event)
+ event.calculated_state = "internal_review"
+ event.save!
+ rebuild_xapian_index
+ get :list, :view => 'awaiting'
+ assigns[:list_results].size.should == 1
end
it "should assign the first page of results" do