Sha256: 666f89d7430540d667770e941e35235d0997a8e3b33d6245195442cfcc45641d
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' require 'sms77/endpoint' require 'json' RSpec.describe Sms77, 'validate_for_voice' do it 'returns caller id information' do number = '491771783130' callback_host = Helper.is_http ? `curl http://ipecho.net/plain` : '127.0.0.1' callback = "#{callback_host}/callback.php" stub = { success: true } body = Helper.post(Sms77::Endpoint::VALIDATE_FOR_VOICE, stub, { number: number, callback: callback }) expect(body).to be_a(Hash) expect(body[:success]).to be_boolean end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sms77-0.2.0 | spec/sms77/validate_for_voice_spec.rb |
sms77-0.1.0 | spec/sms77/validate_for_voice_spec.rb |