diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-03-09 11:48:38 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-03-13 13:55:47 +0000 |
commit | 76de470b1424be57934e58275a6116afb8eb9b3c (patch) | |
tree | 6ed9df78a8acac8278776c831ae6eb08383d935c /spec/spec_helper.rb | |
parent | 17373088052029db46f6f8a6243901e442f6015c (diff) |
first stab at sending PURGE requests to upstream varnish for request pages. Next step: making it asynchronous, e.g. with a queue of things to purge via a cron job.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c00da48bc..e36969d6f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -13,6 +13,9 @@ config['ADMIN_PASSWORD'] = 'baz' # tests assume 20 days config['REPLY_LATE_AFTER_DAYS'] = 20 +# register a fake Varnish server +require 'fakeweb' +FakeWeb.register_uri(:get, %r|varnish|, :body => "OK") # Uncomment the next line to use webrat's matchers #require 'webrat/integrations/rspec-rails' |