Sha256: 452bd81a914aeaefdd85079afa2e14ddaeea6dd6c26a9296401a63935be4c8d0
Contents?: true
Size: 654 Bytes
Versions: 6
Compression:
Stored size: 654 Bytes
Contents
require 'spec_helper' describe LifenFhir::Binary do describe ':download' 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 context 'with invalid uuid' do let(:binary) { LifenFhir::Binary.new(uuid: "wrong-binary-uuid") } it 'fails nicely' do VCR.use_cassette "binary/download/invalid" do expect{ binary.download }.to raise_error LifenFhir::Error end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems