aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers
diff options
context:
space:
mode:
authorseb <seb@seb-U36JC>2011-11-21 12:13:18 +0000
committerseb <seb@seb-U36JC>2011-11-21 12:13:18 +0000
commit8ed974e499c842a8e46d15fd5e492828550b0423 (patch)
treeb89c3e2d59c0b0d24a6ab7ec83eecdf4bfd170ed /spec/controllers
parent2e299c5e5e67b4448bbc42abe0a658f3fa8f7d81 (diff)
Fix occasional test failures due to two events happening in the same second being treated as one for the purposes of caching. Fixes #290.
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/request_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb
index 8e1e4589f..fe9a6a99e 100644
--- a/spec/controllers/request_controller_spec.rb
+++ b/spec/controllers/request_controller_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require 'json'
@@ -239,11 +240,10 @@ describe RequestController, "when showing one request" do
get :download_entire_request, :url_title => title
assigns[:url_path].should have_text(/#{title}.zip$/)
response.location.should have_text(/#{assigns[:url_path]}/)
- assigns[:url_path].should_not == old_path
zipfile = Zip::ZipFile.open(File.join(File.dirname(__FILE__), "../../cache/zips", assigns[:url_path])) { |zipfile|
zipfile.count.should == 4
-zipfile.entries.each {|x| puts x.name}
}
+ assigns[:url_path].should_not == old_path
end
end
end