Sha256: 817fd70b6fe619195991267cf34cb61fac2c8fc08d466a2068ba9a1c9949f478

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

require 'helper'

describe AidsInfo::Client::API do
  context 'search' do
    it 'returns the the resutlt' do
      stub_get('DrugsNew/drug.aspx?displayxml=true&name=combivir').
        to_return(:status => 200, :body => "", :headers => {})
      AidsInfo::Client.new.search('combivir')
      a_get('DrugsNew/drug.aspx?displayxml=true&name=combivir').should have_been_made
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aids_info-1.0.0 spec/aids_info/api_spec.rb