From 2d44a88fb66d28d4694914a1e4650f6374736a45 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 30 Nov 2018 23:08:16 -0500 Subject: [PATCH] add spec for unknown CLI operation --- spec/build_tests_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/build_tests_spec.rb b/spec/build_tests_spec.rb index 322203f..97e7bdb 100644 --- a/spec/build_tests_spec.rb +++ b/spec/build_tests_spec.rb @@ -1524,6 +1524,13 @@ EOF expect(result.stderr).to match /Cannot read nonexistent/ expect(result.status).to_not eq 0 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 context "configure" do