Sha256: 0a16aa51f80db9ee522d2001e421ff4f0fbac550d580cf9e2b4d982200082e32
Contents?: true
Size: 722 Bytes
Versions: 6
Compression:
Stored size: 722 Bytes
Contents
require 'spec_helper' describe SendTextMessageTo do let(:session) { Sessions::BasicAuthSession.new } before { allow(Sessions::BasicAuthSession).to receive(:new).and_return session } it 'performs a post on the text_messages api path providing the person_id and the text_message attributes' do text_message_attributes = { body: 'some_body', reference: 'some_reference'} expect(session).to receive(:post).with '/text_messages', person_id: 'some_person_id', text_message: text_message_attributes SendTextMessageTo.run!(session: session, person_id: 'some_person_id', attributes: text_message_attributes) end end
Version data entries
6 entries across 6 versions & 1 rubygems