spec/cellular/jobs/async_messenger_spec.rb in cellular-2.1.0 vs spec/cellular/jobs/async_messenger_spec.rb in cellular-2.2.0

- old
+ new

@@ -1,24 +1,24 @@ require 'spec_helper' describe Cellular::Jobs::AsyncMessenger do - let(:sms_stub) { double "SMS", deliver: true } - let(:sms_options) { { "recipient" => "12345678", "text" => "Foo" } } + let(:sms_stub) { double 'SMS', deliver: true } + let(:sms_options) { { 'recipient' => '12345678', 'text' => 'Foo' } } before do allow(Cellular::SMS).to receive(:new).and_return sms_stub end it 'creates a new SMS object' do - symbolized_sms_options = { recipient: "12345678", text: "Foo" } + symbolized_sms_options = { recipient: '12345678', text: 'Foo' } subject.perform sms_options expect(Cellular::SMS).to have_received(:new) .with(symbolized_sms_options) end - it "delivers the SMS" do + it 'delivers the SMS' do subject.perform sms_options expect(sms_stub).to have_received :deliver end end