History

Add db_size attribute in doc manifest

Thibaut committed 11 years ago

Commit a59ef1c1 parent 456c4cb3 files · +11 −1Browse files

Showing the changes to test (1 of 3 files). Show all

Unified · Split

test/lib/docs/core/manifest_test.rb+5−0
@@ -78,6 +78,11 @@ class ManifestTest < MiniTest::Spec · 77 unmodified lines
7878 mtime_index, mtime_db = mtime_db, mtime_index
7979 assert_equal mtime_db.to_i, manifest.as_json.first[:mtime]
8080 end
81+
82+ it "adds a :db_size attribute" do
83+ stub(store).size(db_path) { 42 }
84+ assert_equal 42, manifest.as_json.first[:db_size]
85+ end
8186 end
8287
8388 context "when the doc doesn't have an index" do