History

Add fake docs.json manifest for test environment

Thibaut committed 11 years ago

Commit ee4509f1 parent 33b60ac2 files · +5 −0Browse files

Unified · Split

2 files
  1. lib/app.rb +4 −0
  2. test/files/docs.json +1 −0
lib/app.rb+4−0
@@ -81,6 +81,10 @@ class App < Sinatra::Application · 80 unmodified lines
81 end81 end
82 end82 end
83 83
84 configure :test do
85 set :docs_manifest_path, -> { File.join(root, 'test', 'files', 'docs.json') }
86 end
87
84 helpers do88 helpers do
85 include Sinatra::Cookies89 include Sinatra::Cookies
86 include Sprockets::Helpers90 include Sprockets::Helpers
test/files/docs.json+1−0
@@ -0,0 +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}]