add spec for unknown CLI operation

This commit is contained in:
Josh Holtrop 2018-11-30 23:08:16 -05:00
parent 28e3781331
commit 2d44a88fb6

View File

@ -1524,6 +1524,13 @@ EOF
expect(result.stderr).to match /Cannot read nonexistent/ expect(result.stderr).to match /Cannot read nonexistent/
expect(result.status).to_not eq 0 expect(result.status).to_not eq 0
end end
it "outputs an error for an unknown operation" do
test_dir "simple"
result = run_rscons(op: "unknownop")
expect(result.stderr).to match /Unknown operation: unknownop/
expect(result.status).to_not eq 0
end
end end
context "configure" do context "configure" do