summaryrefslogtreecommitdiff
path: root/spec/unit/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/unit/cli
parent80d59246ec0752128548d6c61a2d44ec498771d7 (diff)
feat: Add support for Ruby 3.2+HEADv0.19.0main
Diffstat (limited to 'spec/unit/cli')
-rw-r--r--spec/unit/cli/build_spec.rb2
-rw-r--r--spec/unit/cli/pull_spec.rb2
-rw-r--r--spec/unit/cli/scan_spec.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/cli/build_spec.rb b/spec/unit/cli/build_spec.rb
index f2c6a1f..f7433fa 100644
--- a/spec/unit/cli/build_spec.rb
+++ b/spec/unit/cli/build_spec.rb
@@ -21,7 +21,7 @@ RSpec.describe Spandx::Cli::Commands::Build do
stub_request(:get, 'https://index.rubygems.org/versions')
.to_return(status: 200, body: "created_at: 2020-12-01T00:00:35+00:00\n---\n")
- subject.execute(output: output)
+ subject.execute(output:)
expect(output.string).to eq("nuget\nmaven\npypi\nrubygems\nOK\n")
end
end
diff --git a/spec/unit/cli/pull_spec.rb b/spec/unit/cli/pull_spec.rb
index dbd284a..b648147 100644
--- a/spec/unit/cli/pull_spec.rb
+++ b/spec/unit/cli/pull_spec.rb
@@ -9,7 +9,7 @@ RSpec.describe Spandx::Cli::Commands::Pull do
let(:output) { StringIO.new }
it 'executes `spandx pull` command successfully' do
- subject.execute(output: output)
+ subject.execute(output:)
expect(output.string).to eq(fixture_file('pull.expected').read)
end
diff --git a/spec/unit/cli/scan_spec.rb b/spec/unit/cli/scan_spec.rb
index a11842d..a82e296 100644
--- a/spec/unit/cli/scan_spec.rb
+++ b/spec/unit/cli/scan_spec.rb
@@ -13,7 +13,7 @@ RSpec.describe Spandx::Cli::Commands::Scan do
stub_request(:get, Spandx::Spdx::Gateway::URL)
.to_return(status: 200, body: fixture_file('spdx/json/licenses.json').read)
VCR.use_cassette(lockfile.basename) do
- subject.execute(output: output)
+ subject.execute(output:)
end
end