This commit is contained in:
Sam 2015-06-16 10:53:28 +10:00
parent 1f9761e85d
commit 771eeea837
1 changed files with 2 additions and 2 deletions

View File

@ -52,11 +52,11 @@ describe Middleware::AnonymousCache::Helper do
helper = new_helper("ANON_CACHE_DURATION" => 10)
helper.is_mobile = true
expect(helper.cached).to eq([200, {"HELLO" => "WORLD"}, ["hello my world"]])
expect(helper.cached).to eq([200, {"X-Discourse-Cached" => "true", "HELLO" => "WORLD"}, ["hello my world"]])
expect(crawler.cached).to eq(nil)
crawler.cache([200, {"HELLO" => "WORLD"}, ["hello ", "world"]])
expect(crawler.cached).to eq([200, {"HELLO" => "WORLD"}, ["hello world"]])
expect(crawler.cached).to eq([200, {"X-Discourse-Cached" => "true", "HELLO" => "WORLD"}, ["hello world"]])
end
end