require 'spec_helper' describe Lifen::Communication::Request do let(:channel) { Lifen::Communication::Channel.new(uuid: "valid_channel_uuid", type: "address") } 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") } describe ':send' do let(:request) { Lifen::Communication::Request.new(sender: sender, recipient: recipient, channel: channel, attachment: attachment) } it 'works' do VCR.use_cassette "request/send/valid_attributes" do request.send end expect(request.uuid).to_not be_nil end end end