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
78 mtime_index, mtime_db = mtime_db, mtime_index78 mtime_index, mtime_db = mtime_db, mtime_index
79 assert_equal mtime_db.to_i, manifest.as_json.first[:mtime]79 assert_equal mtime_db.to_i, manifest.as_json.first[:mtime]
80 end80 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
81 end86 end
82 87
83 context "when the doc doesn't have an index" do88 context "when the doc doesn't have an index" do