mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-25 22:53:22 +00:00
e05c262468
I'm not entirely sure how useful all of these will be yet - still trying to work out what/when to test things, but hopefully this'll be a useful datapoint.
14 lines
492 B
Lua
14 lines
492 B
Lua
local capture = require "test_helpers".capture_program
|
|
|
|
describe("The eject program", function()
|
|
it("displays its usage when given no argument", function()
|
|
expect(capture(stub, "eject"))
|
|
:matches { ok = true, output = "Usage: eject <drive>\n", error = "" }
|
|
end)
|
|
|
|
it("fails when trying to eject a non-drive", function()
|
|
expect(capture(stub, "eject /rom"))
|
|
:matches { ok = true, output = "Nothing in /rom drive\n", error = "" }
|
|
end)
|
|
end)
|