spec/zenvia/sms_spec.rb in zenvia-0.0.2 vs spec/zenvia/sms_spec.rb in zenvia-0.0.3
- old
+ new
@@ -26,7 +26,18 @@
subject.message_id = 'message id'
subject.send
end
end
+
+ context "when there is the callbackOption" do
+ it "should send callbackOption" do
+ request_mock.should_receive(:post).with({
+ to: :number, message: :message, dispatch: :send, callbackOption: 2
+ })
+
+ subject.callback_option = 2
+ subject.send
+ end
+ end
end
end