Sha256: 84888a6361b6896c2f3f22319f05896eb15aab4776432b523566a7c18726a402
Contents?: true
Size: 692 Bytes
Versions: 5
Compression:
Stored size: 692 Bytes
Contents
require 'spec_helper' describe LifenFhir::Binary do describe ':download with right uuid' do let(:binary) { LifenFhir::Binary.new(uuid: "valid_binary_id") } it 'works' do VCR.use_cassette "binary/download/valid" do expect(Digest::MD5.hexdigest(binary.download)).to eq("2285abb032c5e9054a518690b4701ab6") end end end describe ':download with right uuid' do let(:binary) { LifenFhir::Binary.new(uuid: "wrong-binary-uuid") } it 'fails with wrong uuid' do VCR.use_cassette "binary/download/invalid" do expect{ binary.download }.to raise_error LifenFhir::Error end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
lifen_fhir-0.4.1 | spec/binary_spec.rb |
lifen_fhir-0.4.0 | spec/binary_spec.rb |
lifen_fhir-0.3.0 | spec/binary_spec.rb |
lifen_fhir-0.2.0 | spec/binary_spec.rb |
lifen_fhir-0.1.1 | spec/binary_spec.rb |