aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/info_request_spec.rb
diff options
context:
space:
mode:
authorfrancis <francis>2009-04-22 02:34:55 +0000
committerfrancis <francis>2009-04-22 02:34:55 +0000
commit530bfa90765ee86051208c14c18b0c7894eb6301 (patch)
treeb7a2f69c1f386c685fac8fa49c6454c5686f680c /spec/models/info_request_spec.rb
parente522cccf0808cfcb814654ede035237ce2ea8499 (diff)
Various test fixes.
Diffstat (limited to 'spec/models/info_request_spec.rb')
-rw-r--r--spec/models/info_request_spec.rb10
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