Sha256: 90e69ed4b84e48fa8d01e2bca8cc9bcdca7c1ffb2bbc54703205f3c81905fb6c
Contents?: true
Size: 880 Bytes
Versions: 3
Compression:
Stored size: 880 Bytes
Contents
require 'spec_helper' describe Cellular::Backends::Log do let(:recipient) { '47xxxxxxxx' } let(:sender) { 'Custom sender' } let(:message) { 'This is an SMS message' } let(:price) { 100 } let(:country) { 'NO '} let(:options) { { recipient: recipient, sender: sender, message: message, price: price } } before do Cellular.config.username = 'username' Cellular.config.password = 'password' Cellular.config.delivery_url = nil end describe '::deliver' do let(:deliveries) { Cellular.deliveries } it 'logs the message' do expect(STDOUT).to receive(:puts) described_class.deliver(options) end end describe '::receive' do it 'has not been implemented yet' do expect do described_class.receive '' end.to raise_error NotImplementedError end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cellular-2.1.0 | spec/cellular/backends/log_spec.rb |
cellular-2.0.0 | spec/cellular/backends/log_spec.rb |
cellular-1.3.0 | spec/cellular/backends/log_spec.rb |