Sha256: b5221a262abb757acb8b22e7481c518381d7628ac1d5e661dccc03f1cf1a8dbd

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

require_relative 'test_helper'
require_relative '../lib/aninipot'

describe Aninipot do

  before do
    @client = initialize_rest_client
  end

  def initialize_rest_client
    Aninipot::Client.configure do |config|
      config.api = config_file['api'].to_s
      config.from = config_file['from']
    end
  end

  it 'should be able to send sms' do
    begin
      response = @client.send_sms("+639275866897", "Test Data")
    rescue Exception => e
      e.message.must_equal Aninipot::Response.new(200).to_s
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aninipot-0.0.1 test/test_aninipot.rb