diff options
author | Robin Houston <robin@lenny.robin> | 2011-06-09 16:07:04 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-06-09 16:07:04 +0100 |
commit | 2d205979d6e75f36ea511645b07be1bfd9a57f66 (patch) | |
tree | 3a9418d27f2e4058730160dd815fe996fecfe194 /spec/models/xapian_spec.rb | |
parent | 4d077dc48fb0589dbf401a131d524b23ab0d2258 (diff) |
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.
Diffstat (limited to 'spec/models/xapian_spec.rb')
-rw-r--r-- | spec/models/xapian_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |