summaryrefslogtreecommitdiff
path: root/tests/spec/validator_spec.rb
diff options
context:
space:
mode:
authorCalvin Buckley <calvin@cmpct.info>2020-02-11 18:24:37 -0400
committerCalvin Buckley <calvin@cmpct.info>2020-02-11 18:32:26 -0400
commit4946a64db774a140d06c45f186f5bc5a4c0c6daa (patch)
treeebd08b88588ca8390842be86209129e58efd9f25 /tests/spec/validator_spec.rb
parent9fa9857a7514469d062335cd2dcb8c0d06eb624c (diff)
downloadhorizon-4946a64db774a140d06c45f186f5bc5a4c0c6daa.tar.gz
horizon-4946a64db774a140d06c45f186f5bc5a4c0c6daa.tar.bz2
horizon-4946a64db774a140d06c45f186f5bc5a4c0c6daa.tar.xz
horizon-4946a64db774a140d06c45f186f5bc5a4c0c6daa.zip
Use Boost's program_options instead of vendoring clipp
This changes how options are parsed a bit, but tests are happy and typical usage is unaffected; just the usage screen is different. This was intended for post-1.0, but turns out I decided to do it. Boost is already required for pre-C++11, so it doesn't seem like a big deal to use. If you don't build the tools, it won't be required.
Diffstat (limited to 'tests/spec/validator_spec.rb')
-rw-r--r--tests/spec/validator_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/spec/validator_spec.rb b/tests/spec/validator_spec.rb
index ba38563..971b91d 100644
--- a/tests/spec/validator_spec.rb
+++ b/tests/spec/validator_spec.rb
@@ -11,11 +11,11 @@ RSpec.describe 'HorizonScript validation', :type => :aruba do
context "Utility argument passing" do
it "requires an installfile to be specified" do
run_command 'hscript-validate'
- expect(last_command_started).to have_output(/usage/)
+ expect(last_command_started).to have_output(/Allowed options/)
end
it "accepts -i flag" do
run_command 'hscript-validate foo -i'
- expect(last_command_started).to_not have_output(/usage/)
+ expect(last_command_started).to_not have_output(/Allowed options/)
end
it "doesn't output ANSI colours when instructed not to" do
run_command 'hscript-validate foo -n'