Sha256: 0f42081181b5299fc409eef7a92ae7552f730d7df4e9b8203cf07ddedf1d2425
Contents?: true
Size: 948 Bytes
Versions: 2
Compression:
Stored size: 948 Bytes
Contents
require "spec_helper" module LicenseFinder describe DetailedTextReport do describe '#to_s' do let(:dep1) do Dependency.new( 'name' => 'gem_a', 'version' => '1.0', 'summary' => 'Summary', 'description' => 'Description', 'licenses' => [License.find_by_name('MIT')].to_set ) end let(:dep2) do Dependency.new( 'name' => 'gem_b', 'version' => '1.0', 'summary' => 'Summary', 'description' => 'Description', 'licenses' => [License.find_by_name('MIT')].to_set ) end subject { DetailedTextReport.new([dep2, dep1]).to_s } it 'should generate a text report with the name, version, license, summary and description of each dependency, sorted by name' do is_expected.to eq("gem_a,1.0,MIT,Summary,Description\ngem_b,1.0,MIT,Summary,Description\n") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
license_finder-1.2 | spec/lib/license_finder/reports/detailed_text_report_spec.rb |
license_finder-1.2-java | spec/lib/license_finder/reports/detailed_text_report_spec.rb |