Sha256: bd0bcbd2bbed0753a3d903354b3e8125af818cdf973286070572ce93c49135ab
Contents?: true
Size: 720 Bytes
Versions: 2
Compression:
Stored size: 720 Bytes
Contents
require "spec_helper" module LicenseFinder describe TextReport do describe '#to_s' do let(:dep1) do Dependency.new( 'name' => 'gem_a', 'version' => '1.0', 'licenses' => [License.find_by_name('MIT')].to_set ) end let(:dep2) do Dependency.new( 'name' => 'gem_b', 'version' => '1.0', 'licenses' => [License.find_by_name('MIT')].to_set ) end subject { TextReport.new([dep2, dep1]).to_s } it 'should generate a text report with the name, version and license of each dependency, sorted by name' do is_expected.to eq("gem_a, 1.0, MIT\ngem_b, 1.0, MIT") 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/text_report_spec.rb |
license_finder-1.2-java | spec/lib/license_finder/reports/text_report_spec.rb |