summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/dates_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/dates_spec.lua b/spec/dates_spec.lua
index 6239fdc..1c5382e 100644
--- a/spec/dates_spec.lua
+++ b/spec/dates_spec.lua
@@ -21,7 +21,7 @@ describe("Days in a year", function()
end)
describe("This year is", function()
- local this_year = os.date "%Y" -- Quite useless test
+ local this_year = tonumber(os.date"%Y") -- Quite useless test
it(tostring(this_year), function()
assert.are.equal(this_year, dates.this_year())