spec/communication_spec.rb in lifen-2.2.0 vs spec/communication_spec.rb in lifen-2.3.0
- old
+ new
@@ -41,13 +41,23 @@
end
describe ':send with a Binary' do
let(:communication) { Lifen::Communication.new(sender: sender, recipient: recipient, channel: channel, binary: binary, patient: patient) }
+ let(:contentString) { Lifen::ContentString.new(text: "Cher Dr Coeur, je viens de voir votre patiente Mme Paulette Michu")}
it 'works' do
VCR.use_cassette "communication/send/binary_valid_attributes" do
+ communication.send
+ end
+
+ expect(communication.uuid).to_not be_nil
+ end
+
+ it 'works with contentString' do
+ communication.content_string = contentString
+ VCR.use_cassette "communication/send/binary_and_content_string" do
communication.send
end
expect(communication.uuid).to_not be_nil
end