Sha256: f0b7558b8448bec3c03ef9a57e36953aec5b8364a05287ade41b8d4d50148b43
Contents?: true
Size: 435 Bytes
Versions: 16
Compression:
Stored size: 435 Bytes
Contents
require 'spec_helper' module LicenseFinder describe PackageDelta do describe '#<=>' do let(:foo) { Package.new('foo') } let(:bar) { Package.new('bar') } it 'sorts by status (added, removed, unchanged)' do p1 = PackageDelta.added(foo) p2 = PackageDelta.removed(bar) p3 = PackageDelta.unchanged(foo, bar) expect([p3, p2, p1].sort).to eq([p1, p2, p3]) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems