diff options
author | francis <francis> | 2009-03-18 01:50:26 +0000 |
---|---|---|
committer | francis <francis> | 2009-03-18 01:50:26 +0000 |
commit | 21f7b27b73be4d42af4426389185daeb93caf294 (patch) | |
tree | 237b8ecb52eb05f6d38c4bb5356b2d0ced8bd75a /spec/models/info_request_spec.rb | |
parent | 61acd49c8ffea61bddd1ff9dda6b64bc4ea6bafb (diff) |
Fixtures have to be set in every class that needs them, as they could be run in any order.
It doesn't seem to clear database between tests - just overwrite the fixtures that are set,
so making it work if it happened to have the right one before.
Diffstat (limited to 'spec/models/info_request_spec.rb')
-rw-r--r-- | spec/models/info_request_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/info_request_spec.rb b/spec/models/info_request_spec.rb index c433686cd..d96ec78ce 100644 --- a/spec/models/info_request_spec.rb +++ b/spec/models/info_request_spec.rb @@ -62,6 +62,7 @@ describe InfoRequest, " when emailing" do end it "should cope with indexing after item is deleted" do + rebuild_xapian_index verbose = false # check can just update index @@ -79,7 +80,7 @@ describe InfoRequest, " when emailing" do end describe InfoRequest, "when calculating status" do - fixtures :public_bodies, :users + fixtures :public_bodies, :users, :holidays # We can't use fixtures as we need to control the date of a message # See due_date_for_request_date tests for fine grained testing |