Sha256: d14f7c51ce97de12c51b5ac2faf3c0b84f84d2b0e47d1b3e5deaa70181f74f66

Contents?: true

Size: 640 Bytes

Versions: 2

Compression:

Stored size: 640 Bytes

Contents

require 'spec_helper'

describe LocaSMS::RestClient do

  describe '.initialize' do
    context 'When giving proper initialization parameters' do
      subject { LocaSMS::RestClient.new :url, :params }
      it { subject.base_url.should be(:url) }
      it { subject.base_params.should be(:params) }
    end
  end

  describe '#get' do
    it 'Is missing tests for get'
  end

  describe '#params_for' do
    subject { LocaSMS::RestClient.new :url, { b1: 'X' } }

    it{ subject.params_for(:action).should == {action: :action, b1: 'X'} }
    it{ subject.params_for(:action, p1: 10).should == {action: :action, b1: 'X', p1: 10} }
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locasms-0.1.2 spec/lib/locasms/rest_client_spec.rb
locasms-0.1.1 spec/lib/locasms/rest_client_spec.rb