aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/util_dbuffer_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util_dbuffer_spec.lua b/spec/util_dbuffer_spec.lua
index 854f3125..1a0c2992 100644
--- a/spec/util_dbuffer_spec.lua
+++ b/spec/util_dbuffer_spec.lua
@@ -26,7 +26,7 @@ describe("util.dbuffer", function ()
it("works", function ()
assert.truthy(b:write("hello world"));
assert.truthy(b:discard(6));
- assert.equal(5, #b);
+ assert.equal(5, b:length());
assert.equal("world", b:read(5));
end);
end);