Sha256: 6c4646258be91715eec1af235cd68c02af81a2621ed0261b180952e47a037383

Contents?: true

Size: 855 Bytes

Versions: 1

Compression:

Stored size: 855 Bytes

Contents

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", content_type: "application/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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lifen-1.6.3 spec/requests_spec.rb