aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/request_controller_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-02-16 19:10:41 +0000
committerLouise Crow <louise.crow@gmail.com>2013-02-16 19:10:41 +0000
commit2d195dd428c5415e75e84fdbae9449bed614e494 (patch)
tree677089631ea6f00d0eefc6183b243c30f3673b94 /spec/controllers/request_controller_spec.rb
parentcf3cb34ba942b2a24d8f9775020db98503e6fad1 (diff)
Clear the purge requests in the setup for these tests so they are isolated from the behaviour of other tests.
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r--spec/controllers/request_controller_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb
index 6f25b605a..396abbb65 100644
--- a/spec/controllers/request_controller_spec.rb
+++ b/spec/controllers/request_controller_spec.rb
@@ -122,6 +122,9 @@ end
describe RequestController, "when changing things that appear on the request page" do
integrate_views
+ before do
+ PurgeRequest.destroy_all
+ end
it "should purge the downstream cache when mail is received" do
ir = info_requests(:fancy_dog_request)