Sha256: 24807fa95409d5a188e205d5eccb39a2c61d208484849ffa4412c793898a6cbe

Contents?: true

Size: 584 Bytes

Versions: 10

Compression:

Stored size: 584 Bytes

Contents

require 'stringio'

module Omnibus
  describe Compressor::Base do
    let(:packager) { double(Packager::Base) }
    let(:project)  { double(Project, packager: packager) }

    describe '.initialize' do
      subject { described_class.new(project) }

      it 'sets the project' do
        expect(subject.project).to eq(project)
      end

      it 'sets the packager' do
        expect(subject.packager).to eq(packager)
      end
    end

    subject { described_class.new(project) }

    it 'inherits from Packager' do
      expect(subject).to be_a(Packager::Base)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
omnibus-5.4.0 spec/unit/compressors/base_spec.rb
omnibus-5.3.0 spec/unit/compressors/base_spec.rb
omnibus-5.2.0 spec/unit/compressors/base_spec.rb
omnibus-5.1.0 spec/unit/compressors/base_spec.rb
omnibus-5.0.0 spec/unit/compressors/base_spec.rb
omnibus-4.1.0 spec/unit/compressors/base_spec.rb
omnibus-4.0.0 spec/unit/compressors/base_spec.rb
omnibus-4.0.0.rc.2 spec/unit/compressors/base_spec.rb
omnibus-4.0.0.rc.1 spec/unit/compressors/base_spec.rb
omnibus-4.0.0.beta.1 spec/unit/compressors/base_spec.rb