aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2009-03-18 01:50:26 +0000
committerfrancis <francis>2009-03-18 01:50:26 +0000
commit21f7b27b73be4d42af4426389185daeb93caf294 (patch)
tree237b8ecb52eb05f6d38c4bb5356b2d0ced8bd75a
parent61acd49c8ffea61bddd1ff9dda6b64bc4ea6bafb (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.
-rw-r--r--spec/models/info_request_spec.rb3
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