Showing the changes to test (1 of 3 files). Show all
Unified · Split
| @@ -78,6 +78,11 @@ class ManifestTest < MiniTest::Spec · 77 unmodified lines | ||
| 78 | 78 | mtime_index, mtime_db = mtime_db, mtime_index |
| 79 | 79 | assert_equal mtime_db.to_i, manifest.as_json.first[:mtime] |
| 80 | 80 | 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 | 86 | end |
| 82 | 87 | |
| 83 | 88 | context "when the doc doesn't have an index" do |