diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-04 15:21:13 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-04 15:21:13 -0600 |
| commit | c79178352dc3f119a3a185e95a1a86fc2f7ea0a1 (patch) | |
| tree | 5513555d2b6c83594bf22f63592b6c9979c34b46 /spec/integration | |
| parent | c294294988f3459cc41d5d43576496b33689683a (diff) | |
Simplify command line interface
Diffstat (limited to 'spec/integration')
| -rw-r--r-- | spec/integration/cli/build_spec.rb (renamed from spec/integration/cli/index/build_spec.rb) | 8 | ||||
| -rw-r--r-- | spec/integration/cli/fetch_spec.rb | 18 | ||||
| -rw-r--r-- | spec/integration/cli/index/update_spec.rb | 18 | ||||
| -rw-r--r-- | spec/integration/cli/index_spec.rb | 16 |
4 files changed, 22 insertions, 38 deletions
diff --git a/spec/integration/cli/index/build_spec.rb b/spec/integration/cli/build_spec.rb index af4936a..99bb5a3 100644 --- a/spec/integration/cli/index/build_spec.rb +++ b/spec/integration/cli/build_spec.rb @@ -1,11 +1,11 @@ # frozen_string_literal: true -RSpec.describe '`spandx index build` command', type: :cli do - it 'executes `spandx index help build` command successfully' do - output = `spandx index help build` +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 index build + spandx build Options: -h, [--help], [--no-help] # Display usage information diff --git a/spec/integration/cli/fetch_spec.rb b/spec/integration/cli/fetch_spec.rb new file mode 100644 index 0000000..6f36c0f --- /dev/null +++ b/spec/integration/cli/fetch_spec.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +RSpec.describe '`spandx fetch` command', type: :cli do + it 'executes `spandx help fetch` command successfully' do + output = `spandx help fetch` + expected_output = <<~OUT + Usage: + spandx fetch + + Options: + -h, [--help], [--no-help] # Display usage information + + Fetch the latest offline cache + OUT + + expect(output).to eq(expected_output) + end +end diff --git a/spec/integration/cli/index/update_spec.rb b/spec/integration/cli/index/update_spec.rb deleted file mode 100644 index 9ee0b7e..0000000 --- a/spec/integration/cli/index/update_spec.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -RSpec.describe '`spandx index update` command', type: :cli do - it 'executes `spandx index help update` command successfully' do - output = `spandx index help update` - expected_output = <<~OUT - Usage: - spandx index update - - Options: - -h, [--help], [--no-help] # Display usage information - - Update the offline indexes - OUT - - expect(output).to eq(expected_output) - end -end diff --git a/spec/integration/cli/index_spec.rb b/spec/integration/cli/index_spec.rb deleted file mode 100644 index 6b3c783..0000000 --- a/spec/integration/cli/index_spec.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -RSpec.describe '`spandx index` command', type: :cli do - it 'executes `spandx help index` command successfully' do - output = `spandx help index` - expected_output = <<~OUT - Commands: - spandx index build # Build a package index - spandx index help [COMMAND] # Describe subcommands or one specific subcommand - spandx index update # Update the offline indexes - - OUT - - expect(output).to eq(expected_output) - end -end |
