History

Remove index_path and db_path from docs manifest

Thibaut Courouble committed 10 years ago

Commit a639aed1 parent e1c02187 files · +16 −14Browse files

Showing the changes to test (2 of 7 files). Show all

Unified · Split

2 files
  1. test/files/docs.json +1 −1
  2. test/lib/docs/core/doc_test.rb +2 −2
test/files/docs.json+1−1
@@ -1 +1 @@
1[{"name":"CSS","slug":"css","type":"mdn","version":null,"index_path":"css/index.json","db_path":"css/db.json","mtime":1420139788,"db_size":3460507},{"name":"DOM","slug":"dom","type":"mdn","version":null,"index_path":"dom/index.json","db_path":"dom/db.json","mtime":1420139789,"db_size":11399128},{"name":"DOM Events","slug":"dom_events","type":"mdn","version":null,"index_path":"dom_events/index.json","db_path":"dom_events/db.json","mtime":1420139790,"db_size":889020},{"name":"HTML","slug":"html","type":"mdn","version":null,"index_path":"html/index.json","db_path":"html/db.json","mtime":1420139790,"db_size":1835646},{"name":"HTTP","slug":"http","type":"rfc","version":null,"index_path":"http/index.json","db_path":"http/db.json","mtime":1420139790,"db_size":183083},{"name":"JavaScript","slug":"javascript","type":"mdn","version":null,"index_path":"javascript/index.json","db_path":"javascript/db.json","mtime":1420139791,"db_size":4125477}]1[{"name":"CSS","slug":"css","type":"mdn","release":null,"mtime":1420139788,"db_size":3460507},{"name":"DOM","slug":"dom","type":"mdn","release":null,"mtime":1420139789,"db_size":11399128},{"name":"DOM Events","slug":"dom_events","type":"mdn","release":null,"mtime":1420139790,"db_size":889020},{"name":"HTML","slug":"html","type":"mdn","release":null,"mtime":1420139790,"db_size":1835646},{"name":"HTTP","slug":"http","type":"rfc","release":null,"mtime":1420139790,"db_size":183083},{"name":"JavaScript","slug":"javascript","type":"mdn","release":null,"mtime":1420139791,"db_size":4125477}]
test/lib/docs/core/doc_test.rb+2−2
@@ -115,8 +115,8 @@ class DocsDocTest < MiniTest::Spec · 114 unmodified lines
115 assert_instance_of Hash, doc.as_json115 assert_instance_of Hash, doc.as_json
116 end116 end
117 117
118 it "includes the doc's name, slug, type, release, index_path and db_path" do118 it "includes the doc's name, slug, type, and release" do
119 %w(name slug type release index_path db_path links).each do |attribute|119 %w(name slug type release links).each do |attribute|
120 eval "stub(doc).#{attribute} { attribute }"120 eval "stub(doc).#{attribute} { attribute }"
121 assert_equal attribute, doc.as_json[attribute.to_sym]121 assert_equal attribute, doc.as_json[attribute.to_sym]
122 end122 end