summaryrefslogtreecommitdiff
path: root/spec/unit/spdx
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/spdx')
-rw-r--r--spec/unit/spdx/composite_license_spec.rb6
-rw-r--r--spec/unit/spdx/gateway_spec.rb2
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/spdx/composite_license_spec.rb b/spec/unit/spdx/composite_license_spec.rb
index 80ee503..d479318 100644
--- a/spec/unit/spdx/composite_license_spec.rb
+++ b/spec/unit/spdx/composite_license_spec.rb
@@ -11,7 +11,7 @@ RSpec.describe Spandx::Spdx::CompositeLicense do
specify { expect(subject.id).to eql('0BSD OR MIT') }
specify { expect(subject.name).to eql("#{catalogue['0BSD'].name} OR #{catalogue['MIT'].name}") }
- specify { expect(subject).to be_kind_of(::Spandx::Spdx::License) }
+ specify { expect(subject).to be_a(::Spandx::Spdx::License) }
end
context 'when parsing an expression with a valid and an invalid license id' do
@@ -19,7 +19,7 @@ RSpec.describe Spandx::Spdx::CompositeLicense do
specify { expect(subject.id).to eql('MIT OR Nonstandard') }
specify { expect(subject.name).to eql("#{catalogue['MIT'].name} OR GPLv3") }
- specify { expect(subject).to be_kind_of(::Spandx::Spdx::License) }
+ specify { expect(subject).to be_a(::Spandx::Spdx::License) }
end
context 'when parsing a license name' do
@@ -40,7 +40,7 @@ RSpec.describe Spandx::Spdx::CompositeLicense do
specify { expect(subject.id).to eql('MIT OR CC0-1.0') }
specify { expect(subject.name).to eql("#{catalogue['MIT'].name} OR #{catalogue['CC0-1.0'].name}") }
- specify { expect(subject).to be_kind_of(::Spandx::Spdx::License) }
+ specify { expect(subject).to be_a(::Spandx::Spdx::License) }
end
end
end
diff --git a/spec/unit/spdx/gateway_spec.rb b/spec/unit/spdx/gateway_spec.rb
index cb78a2a..2623934 100644
--- a/spec/unit/spdx/gateway_spec.rb
+++ b/spec/unit/spdx/gateway_spec.rb
@@ -2,7 +2,7 @@
RSpec.describe Spandx::Spdx::Gateway do
describe '#fetch' do
- subject { described_class.new.fetch(http: http) }
+ subject { described_class.new.fetch(http:) }
let(:url) { described_class::URL }
let(:http) { Spandx::Core::Http.new }