From 2d205979d6e75f36ea511645b07be1bfd9a57f66 Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Thu, 9 Jun 2011 16:07:04 +0100 Subject: Make sure the :public_body_translation fixture is included everywhere the :public_bodies fixture is, because the PublicBody objects do not work as expected without it. --- spec/models/xapian_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/models/xapian_spec.rb') diff --git a/spec/models/xapian_spec.rb b/spec/models/xapian_spec.rb index 00a88be99..79ffc4839 100644 --- a/spec/models/xapian_spec.rb +++ b/spec/models/xapian_spec.rb @@ -34,7 +34,7 @@ describe User, " when indexing users with Xapian" do end describe PublicBody, " when indexing public bodies with Xapian" do - fixtures :public_bodies, :incoming_messages, :outgoing_messages, :raw_emails, :comments + fixtures :public_bodies, :public_body_translations, :incoming_messages, :outgoing_messages, :raw_emails, :comments it "should search index the main name field" do rebuild_xapian_index @@ -69,7 +69,7 @@ describe PublicBody, " when indexing public bodies with Xapian" do end describe PublicBody, " when indexing requests by body they are to" do - fixtures :public_bodies, :info_request_events, :info_requests, :raw_emails, :comments + fixtures :public_bodies, :public_body_translations, :info_request_events, :info_requests, :raw_emails, :comments it "should find requests to the body" do rebuild_xapian_index @@ -290,7 +290,7 @@ describe InfoRequest, " when indexing requests by tag" do end describe PublicBody, " when indexing authorities by tag" do - fixtures :public_bodies, :incoming_messages, :outgoing_messages, :raw_emails, :comments + fixtures :public_bodies, :public_body_translations, :incoming_messages, :outgoing_messages, :raw_emails, :comments it "should find request by tag, even when changes" do rebuild_xapian_index -- cgit v1.2.3