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 | |
| parent | 93371aa8e4393a420f753f1311f91982ee896eed (diff) | |
Remove VCR and recordings that are not needed
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/fixtures/recordings/example_csproj.yml | 38 | ||||
| -rw-r--r-- | spec/fixtures/recordings/single_sln.yml | 88 | ||||
| -rw-r--r-- | spec/unit/dotnet/parsers/csproj_spec.rb | 6 | ||||
| -rw-r--r-- | spec/unit/dotnet/parsers/sln_spec.rb | 11 |
4 files changed, 3 insertions, 140 deletions
diff --git a/spec/fixtures/recordings/example_csproj.yml b/spec/fixtures/recordings/example_csproj.yml deleted file mode 100644 index f3e3aae..0000000 --- a/spec/fixtures/recordings/example_csproj.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: https://api.nuget.org/v3-flatcontainer/jive/0.1.0/jive.nuspec - headers: - Host: - - api.nuget.org - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - text/xml - body: - encoding: UTF-8 - string: |- - <?xml version="1.0" encoding="utf-8"?> - <package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> - <metadata> - <id>jive</id> - <version>0.1.0</version> - <authors>mo khan</authors> - <owners>mo khan</owners> - <requireLicenseAcceptance>false</requireLicenseAcceptance> - <license type="expression">MIT</license> - <licenseUrl>https://licenses.nuget.org/MIT</licenseUrl> - <description>Add a little jive talk to your csharp.</description> - <repository url="https://github.com/mokhan/jive.net" /> - <dependencies> - <group targetFramework=".NETCoreApp3.0" /> - </dependencies> - </metadata> - </package> - http_version: - recorded_at: Fri, 24 Jan 2020 23:22:57 GMT -recorded_with: VCR 5.0.0 diff --git a/spec/fixtures/recordings/single_sln.yml b/spec/fixtures/recordings/single_sln.yml deleted file mode 100644 index 8a9f9fd..0000000 --- a/spec/fixtures/recordings/single_sln.yml +++ /dev/null @@ -1,88 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: https://api.nuget.org/v3-flatcontainer/jive/0.1.0/jive.nuspec - headers: - Host: - - api.nuget.org - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - text/xml - body: - encoding: UTF-8 - string: |- - <?xml version="1.0" encoding="utf-8"?> - <package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> - <metadata> - <id>jive</id> - <version>0.1.0</version> - <authors>mo khan</authors> - <owners>mo khan</owners> - <requireLicenseAcceptance>false</requireLicenseAcceptance> - <license type="expression">MIT</license> - <licenseUrl>https://licenses.nuget.org/MIT</licenseUrl> - <description>Add a little jive talk to your csharp.</description> - <repository url="https://github.com/mokhan/jive.net" /> - <dependencies> - <group targetFramework=".NETCoreApp3.0" /> - </dependencies> - </metadata> - </package> - http_version: - recorded_at: Tue, 28 Jan 2020 17:09:35 GMT -- request: - method: get - uri: https://api.nuget.org/v3-flatcontainer/xunit/2.4.0/xunit.nuspec - headers: - Host: - - api.nuget.org - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - text/xml - body: - encoding: UTF-8 - string: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<package xmlns=\"http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd\">\r\n - \ <metadata minClientVersion=\"2.12\">\r\n <id>xunit</id>\r\n <version>2.4.0</version>\r\n - \ <title>xUnit.net</title>\r\n <authors>James Newkirk,Brad Wilson</authors>\r\n - \ <owners>James Newkirk,Brad Wilson</owners>\r\n <requireLicenseAcceptance>false</requireLicenseAcceptance>\r\n - \ <licenseUrl>https://raw.githubusercontent.com/xunit/xunit/master/license.txt</licenseUrl>\r\n - \ <projectUrl>https://github.com/xunit/xunit</projectUrl>\r\n <iconUrl>https://raw.githubusercontent.com/xunit/media/master/logo-512-transparent.png</iconUrl>\r\n - \ <description>xUnit.net is a developer testing framework, built to support - Test Driven Development, with a design goal of extreme simplicity and alignment - with framework features.\r\n\r\nInstalling this package installs xunit.core, - xunit.assert, and xunit.analyzers.</description>\r\n <summary>xUnit.net - is a developer testing framework, built to support Test Driven Development.</summary>\r\n - \ <language>en-US</language>\r\n <dependencies>\r\n <dependency - id=\"xunit.core\" version=\"[2.4.0]\" />\r\n <dependency id=\"xunit.assert\" - version=\"[2.4.0]\" />\r\n <dependency id=\"xunit.analyzers\" version=\"0.10.0\" - />\r\n </dependencies>\r\n </metadata>\r\n</package>" - http_version: - recorded_at: Tue, 28 Jan 2020 17:09:35 GMT -- request: - method: get - uri: https://raw.githubusercontent.com/xunit/xunit/master/license.txt - headers: - Host: - - raw.githubusercontent.com - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - text/plain; charset=utf-8 - body: - encoding: ASCII-8BIT - string: LICENSE - http_version: - recorded_at: Tue, 28 Jan 2020 17:09:35 GMT -recorded_with: VCR 5.0.0 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 |
