Sha256: 8885ed2f59afaa0277109ddab7d3d01c91a2e0a52b7b1388bc4f04314d1f3fdd

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

require 'test_helper'

describe Rupert::RPM do
  let(:signature)      { mock }
  let(:rpm)            { Rupert::RPM.new(nil, signature, signed_content) }
  let(:signed_content) { ascii("\x01\x02\x03\x04") }

  it "exposes the MD5 digest held by the signature" do
    signature.expects(:md5).once.returns("abc")

    rpm.md5
  end

  it "asks the signature to verify content integrity" do
    signature.expects(:verify_checksum).once.with(signed_content)

    rpm.intact?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rupert-0.0.1 test/unit/rpm_test.rb