Sha256: b8c2ec411c691e259511aa5d86ffcca63d0427502f042ab2ca39e61c5a217b4d
Contents?: true
Size: 808 Bytes
Versions: 14
Compression:
Stored size: 808 Bytes
Contents
require "spec_helper" module LicenseFinder describe TextReport do describe '#to_s' do let(:dep1) do dependency = Dependency.new( 'name' => 'gem_a', 'version' => '1.0', ) dependency.license = LicenseFinder::LicenseAlias.create(name: 'MIT') dependency end let(:dep2) do dependency = Dependency.new( 'name' => 'gem_b', 'version' => '1.0', ) dependency.license = LicenseFinder::LicenseAlias.create(name: 'MIT') dependency 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 should == "gem_a, 1.0, MIT\ngem_b, 1.0, MIT" end end end end
Version data entries
14 entries across 14 versions & 1 rubygems