CC-Tweaked/src/test/resources/test-rom/spec/programs/edit_spec.lua

10 lines
298 B
Lua

local capture = require "test_helpers".capture_program
describe("The edit program", function()
it("displays its usage when given no argument", function()
expect(capture(stub, "edit"))
:matches { ok = true, output = "Usage: edit <path>\n", error = "" }
end)
end)