Sha256: 91873558895e47c1de6ea50a733805dfc665b503833e69b7efb76c03a43d6fce
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 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!(person_id: 'some_person_id', attributes: text_message_attributes) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roqua-core-api-0.2.4 | spec/lib/roqua/core_api/send_text_message_to_spec.rb |