From cfae96d1b3eac7cd927f504f5b62de10007cff6a Mon Sep 17 00:00:00 2001 From: francis Date: Tue, 1 Apr 2008 05:35:31 +0000 Subject: Test search list results. --- spec/controllers/request_controller_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/controllers/request_controller_spec.rb') 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 -- cgit v1.2.3