summaryrefslogtreecommitdiff
path: root/spec/integration/cli
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2024-12-31 11:51:58 -0700
committermo khan <mo@mokhan.ca>2024-12-31 14:40:07 -0700
commit78c6a086164aa83ce2e4e57daadfbdb53a31a37f (patch)
tree2718cbb345bb3c8257ccbaf9e1b8e7913699a3a5 /spec/integration/cli
parent80d59246ec0752128548d6c61a2d44ec498771d7 (diff)
feat: Add support for Ruby 3.2+HEADv0.19.0main
Diffstat (limited to 'spec/integration/cli')
-rw-r--r--spec/integration/cli/build_spec.rb17
-rw-r--r--spec/integration/cli/pull_spec.rb12
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