Sha256: 0fa021a6797dd8c0964a357c1d4106b6a5de2bc9d8fe160abcf30bcec430aae9
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' describe Lifen::Communication::Request do let(:channel) { Lifen::Communication::Channel.new(uuid: "valid_channel_uuid", type: "address") } #valid_channel_uuid let(:sender) { Lifen::User.new(uuid: "valid_sender_uuid") } #valid_sender_uuid let(:recipient) { Lifen::User.new(uuid: "valid_recipient_uuid") } #valid_recipient_uuid let(:attachment) { Lifen::Communication::Attachment.new(title: "Master Plan", path: File.dirname(__FILE__) + "/support/master_plan.pdf", content_type: "application/pdf") } let(:patient) { Lifen::Communication::Patient.new(first_name: "Jean", last_name: "Dupond", birthdate: Date.new(2000,1,1)) } describe ':send' do let(:request) { Lifen::Communication::Request.new(sender: sender, recipient: recipient, channel: channel, attachment: attachment, patient: patient) } it 'works' do VCR.use_cassette "request/send/valid_attributes" do request.send end expect(request.uuid).to_not be_nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lifen-1.6.6 | spec/requests_spec.rb |
lifen-1.6.5 | spec/requests_spec.rb |
lifen-1.6.4 | spec/requests_spec.rb |