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

Version Path
license_finder-3.0.4 spec/lib/license_finder/package_delta_spec.rb
license_finder-3.0.2 spec/lib/license_finder/package_delta_spec.rb
license_finder-3.0.1 spec/lib/license_finder/package_delta_spec.rb
license_finder-3.0.0 spec/lib/license_finder/package_delta_spec.rb
license_finder-2.1.2 spec/lib/license_finder/package_delta_spec.rb
license_finder-2.1.1 spec/lib/license_finder/package_delta_spec.rb
license_finder-2.1.0 spec/lib/license_finder/package_delta_spec.rb
license_finder-2.1.0.rc9 spec/lib/license_finder/package_delta_spec.rb
license_finder-2.1.0.rc8 spec/lib/license_finder/package_delta_spec.rb
license_finder-2.1.0.rc7 spec/lib/license_finder/package_delta_spec.rb
license_finder-2.1.0.rc6 spec/lib/license_finder/package_delta_spec.rb
license_finder-2.1.0.rc5 spec/lib/license_finder/package_delta_spec.rb
license_finder-2.1.0.rc4 spec/lib/license_finder/package_delta_spec.rb
license_finder-2.1.0.rc3 spec/lib/license_finder/package_delta_spec.rb
license_finder-2.1.0.rc2 spec/lib/license_finder/package_delta_spec.rb
license_finder-2.1.0.rc1 spec/lib/license_finder/package_delta_spec.rb