spec/requests_spec.rb in lifen-1.6.3 vs spec/requests_spec.rb in lifen-1.6.4
- old
+ new
@@ -1,19 +1,21 @@
require 'spec_helper'
describe Lifen::Communication::Request do
+ let(:channel) { Lifen::Communication::Channel.new(uuid: "valid_channel_uuid", type: "address") } #valid_channel_uuid
- let(:channel) { Lifen::Communication::Channel.new(uuid: "valid_channel_uuid", type: "address") }
+ 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(:sender) { Lifen::User.new(uuid: "valid_sender_uuid") }
- let(:recipient) { Lifen::User.new(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) }
+ 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
\ No newline at end of file