diff options
author | francis <francis> | 2008-04-01 05:35:31 +0000 |
---|---|---|
committer | francis <francis> | 2008-04-01 05:35:31 +0000 |
commit | cfae96d1b3eac7cd927f504f5b62de10007cff6a (patch) | |
tree | bf541572c31bf5cb7289bdcff766b0d7f995d565 /spec/controllers/request_controller_spec.rb | |
parent | ea9642f302b875c19da737fd1db630ba12d42ed5 (diff) |
Test search list results.
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 8 |
1 files changed, 4 insertions, 4 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 |