Sha256: 2fcc4b87480c2326eb8c37cc75aeb2fbe05056703fb6cec69e3cdf07cbd1d40c

Contents?: true

Size: 822 Bytes

Versions: 3

Compression:

Stored size: 822 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") }

  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

3 entries across 3 versions & 1 rubygems

Version Path
lifen-1.6.2 spec/requests_spec.rb
lifen-1.6.1 spec/requests_spec.rb
lifen-1.6.0 spec/requests_spec.rb