summaryrefslogtreecommitdiff
path: root/spec/integration/cli/build_spec.rb
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-04 15:21:13 -0600
committermo khan <mo.khan@gmail.com>2020-04-04 15:21:13 -0600
commitc79178352dc3f119a3a185e95a1a86fc2f7ea0a1 (patch)
tree5513555d2b6c83594bf22f63592b6c9979c34b46 /spec/integration/cli/build_spec.rb
parentc294294988f3459cc41d5d43576496b33689683a (diff)
Simplify command line interface
Diffstat (limited to 'spec/integration/cli/build_spec.rb')
-rw-r--r--spec/integration/cli/build_spec.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/integration/cli/build_spec.rb b/spec/integration/cli/build_spec.rb
new file mode 100644
index 0000000..99bb5a3
--- /dev/null
+++ b/spec/integration/cli/build_spec.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+RSpec.describe '`spandx build` command', type: :cli do
+ it 'executes `spandx help build` command successfully' do
+ output = `spandx help build`
+ expected_output = <<~OUT
+ Usage:
+ spandx build
+
+ Options:
+ -h, [--help], [--no-help] # Display usage information
+ -d, [--directory=DIRECTORY] # Directory to build index in
+ # Default: .index
+ -i, [--index=INDEX] # The specific index to build
+ # Default: all
+
+ Build a package index
+ OUT
+ expect(output).to eq(expected_output)
+ end
+end