aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/request_controller_spec.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-05-15 22:18:19 +0000
committerfrancis <francis>2008-05-15 22:18:19 +0000
commiteb04710bf6c54a7ae78978cceef278a48ceea268 (patch)
treec6029e2eaf37a005e4ea4c491031bc1f80ffb7c2 /spec/controllers/request_controller_spec.rb
parent9f7e49290896e325060798e86a84602f92e99396 (diff)
Test code for search separated by type.
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r--spec/controllers/request_controller_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb
index 980094e7a..411b2948b 100644
--- a/spec/controllers/request_controller_spec.rb
+++ b/spec/controllers/request_controller_spec.rb
@@ -21,9 +21,10 @@ describe RequestController, "when listing all requests" do
get :list
# reverse-chronological order
- assigns[:search_results].size.should == 2
- assigns[:search_results][0][:model].should == info_request_events(:silly_outgoing_message_event)
- assigns[:search_results][1][:model].should == info_request_events(:useless_outgoing_message_event)
+ assigns[:xapian_object].matches_estimated.should == 2
+ assigns[:xapian_object].results.size.should == 2
+ assigns[:xapian_object].results[0][:model].should == info_request_events(:silly_outgoing_message_event)
+ assigns[:xapian_object].results[1][:model].should == info_request_events(:useless_outgoing_message_event)
end
end