diff options
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 8 | ||||
-rw-r--r-- | spec/fixtures/info_request_events.yml | 2 | ||||
-rw-r--r-- | todo.txt | 4 |
3 files changed, 5 insertions, 9 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index 746ae5f13..e6fb9707f 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/../spec_helper' describe RequestController, "when listing all requests" do integrate_views - fixtures :info_requests, :outgoing_messages + fixtures :info_requests, :outgoing_messages, :info_request_events it "should be successful" do get :list @@ -18,9 +18,9 @@ describe RequestController, "when listing all requests" do # XXX probably should load more than one page of requests into db here :) get :list - assigns[:info_requests].should == [ - info_requests(:naughty_chicken_request), # reverse-chronological order - info_requests(:fancy_dog_request) + assigns[:search_results].should == [ + info_request_events(:silly_outgoing_message_event), # reverse-chronological order + info_request_events(:useless_outgoing_message_event) ] end end diff --git a/spec/fixtures/info_request_events.yml b/spec/fixtures/info_request_events.yml index af8869511..095f18f52 100644 --- a/spec/fixtures/info_request_events.yml +++ b/spec/fixtures/info_request_events.yml @@ -4,7 +4,7 @@ useless_outgoing_message_event: id: 900 info_request_id: 101 event_type: sent - created_at: 2007-10-25 10:41:12.686264 + created_at: 2007-10-12 01:56:58.586598 described_state: silly_outgoing_message_event: params_yaml: "--- \n\ @@ -1,7 +1,3 @@ -Search: - -Make /list be search - FOI requests to use to test it ============================== |