diff options
Diffstat (limited to 'spec/models/info_request_spec.rb')
-rw-r--r-- | spec/models/info_request_spec.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/spec/models/info_request_spec.rb b/spec/models/info_request_spec.rb index 4948af9e9..6d60f4c25 100644 --- a/spec/models/info_request_spec.rb +++ b/spec/models/info_request_spec.rb @@ -96,16 +96,10 @@ describe InfoRequest do rebuild_xapian_index verbose = false - # check can just update index - info_request_events(:useless_incoming_message_event).save! - ActsAsXapian.update_index(false, verbose) - - # then delete it under it + # delete event from underneath indexing; shouldn't cause error info_request_events(:useless_incoming_message_event).save! info_request_events(:useless_incoming_message_event).destroy - ActsAsXapian.update_index(false, verbose) - - # raise ActsAsXapian::ActsAsXapianJob.find(:all).to_yaml + ActsAsXapian.update_index(true, verbose) end end |