summaryrefslogtreecommitdiff
path: root/spec/integration
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-02-01 17:20:22 -0700
committermo khan <mo.khan@gmail.com>2020-02-01 17:20:22 -0700
commitc8fd92b56b07090901d1c74862c19cfc1d2df166 (patch)
tree9c2f3e9a4fc7d240511b57f7a039144eee4425a5 /spec/integration
parentc7ded689224487abdffd15b46de063f9d03d68a1 (diff)
Add command to build index
Diffstat (limited to 'spec/integration')
-rw-r--r--spec/integration/build_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/integration/build_spec.rb b/spec/integration/build_spec.rb
new file mode 100644
index 0000000..691a0a4
--- /dev/null
+++ b/spec/integration/build_spec.rb
@@ -0,0 +1,18 @@
+# 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
+
+ Command description...
+ OUT
+
+ expect(output).to eq(expected_output)
+ end
+end