diff options
Diffstat (limited to 'spec/integration/cli')
| -rw-r--r-- | spec/integration/cli/build_spec.rb | 17 | ||||
| -rw-r--r-- | spec/integration/cli/pull_spec.rb | 12 |
2 files changed, 2 insertions, 27 deletions
diff --git a/spec/integration/cli/build_spec.rb b/spec/integration/cli/build_spec.rb index 0e51301..47f63a7 100644 --- a/spec/integration/cli/build_spec.rb +++ b/spec/integration/cli/build_spec.rb @@ -3,21 +3,6 @@ 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 - -l, [--logfile=LOGFILE] # Path to a logfile - # Default: /dev/null - -i, [--index=INDEX] # The specific index to build - # Default: all - - Build a package index - OUT - expect(output).to eq(expected_output) + expect(output).to eq(fixture_file_content('help-build.expected')) end end diff --git a/spec/integration/cli/pull_spec.rb b/spec/integration/cli/pull_spec.rb index de3426f..f2d396b 100644 --- a/spec/integration/cli/pull_spec.rb +++ b/spec/integration/cli/pull_spec.rb @@ -3,16 +3,6 @@ RSpec.describe '`spandx pull` command', type: :cli do it 'executes `spandx help pull` command successfully' do output = `spandx help pull` - expected_output = <<~OUT - Usage: - spandx pull - - Options: - -h, [--help], [--no-help] # Display usage information - - Pull the latest offline cache - OUT - - expect(output).to eq(expected_output) + expect(output).to eq(fixture_file_content('help-pull.expected')) end end |
