diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-27 00:25:50 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-27 00:25:50 +0000 |
commit | ac8946b96ad80762d84d1ef67bfc395ad3700124 (patch) | |
tree | 8d8db6d1f9501385c37b5b0d9a0c3ed837a4fcd9 /spec/controllers/general_controller_spec.rb | |
parent | 24bbaa5afac5ce27c351e3b460be1b0182446ba1 (diff) |
Add a trivial test for the list of recent requests
Diffstat (limited to 'spec/controllers/general_controller_spec.rb')
-rw-r--r-- | spec/controllers/general_controller_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/controllers/general_controller_spec.rb b/spec/controllers/general_controller_spec.rb index 2750a33f3..c4fd46c14 100644 --- a/spec/controllers/general_controller_spec.rb +++ b/spec/controllers/general_controller_spec.rb @@ -108,6 +108,18 @@ describe GeneralController, "when searching" do I18n.available_locales = old_i18n_available_locales end end + + describe 'when constructing the list of recent requests' do + before(:each) do + load_raw_emails_data(raw_emails) + rebuild_xapian_index + end + + it 'should list the successful request first' do + get :frontpage + assigns[:request_events].first.info_request.should == info_requests(:boring_request) + end + end describe 'when using xapian search' do |