diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-10 18:20:32 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-10 18:20:32 -0600 |
| commit | ed40a4d64158c1f3f158caa27a6e6b8381fce259 (patch) | |
| tree | c37e95f5e5c7ec1b2fba7834bb6ac13430cb1b38 /spec/unit/dotnet | |
| parent | 93371aa8e4393a420f753f1311f91982ee896eed (diff) | |
Remove VCR and recordings that are not needed
Diffstat (limited to 'spec/unit/dotnet')
| -rw-r--r-- | spec/unit/dotnet/parsers/csproj_spec.rb | 6 | ||||
| -rw-r--r-- | spec/unit/dotnet/parsers/sln_spec.rb | 11 |
2 files changed, 3 insertions, 14 deletions
diff --git a/spec/unit/dotnet/parsers/csproj_spec.rb b/spec/unit/dotnet/parsers/csproj_spec.rb index f25d194..000c571 100644 --- a/spec/unit/dotnet/parsers/csproj_spec.rb +++ b/spec/unit/dotnet/parsers/csproj_spec.rb @@ -9,11 +9,7 @@ RSpec.describe Spandx::Dotnet::Parsers::Csproj do context 'when parsing a .csproj file' do let(:lockfile) { fixture_file('nuget/example.csproj') } - let(:because) do - VCR.use_cassette(File.basename(lockfile)) do - subject.parse(lockfile) - end - end + let(:because) { subject.parse(lockfile) } let(:jive) { because.find { |item| item.name == 'jive' } } specify { expect(jive.name).to eql('jive') } diff --git a/spec/unit/dotnet/parsers/sln_spec.rb b/spec/unit/dotnet/parsers/sln_spec.rb index d9b306b..c652053 100644 --- a/spec/unit/dotnet/parsers/sln_spec.rb +++ b/spec/unit/dotnet/parsers/sln_spec.rb @@ -9,19 +9,12 @@ RSpec.describe Spandx::Dotnet::Parsers::Sln do context 'when parsing a sln file without any project references' do let(:sln) { fixture_file('nuget/empty.sln') } - it 'returns an empty list of dependencies' do - expect(subject.parse(sln)).to be_empty - end + specify { expect(subject.parse(sln)).to be_empty } end context 'when parsing a sln file with a single project reference' do let(:sln) { fixture_file('nuget/single.sln') } - - let(:because) do - VCR.use_cassette(File.basename(sln)) do - subject.parse(sln) - end - end + let(:because) { subject.parse(sln) } specify { expect(because.map(&:name)).to match_array(%w[jive xunit]) } end |
