Sha256: 121c33ffccc366cc326ad09fcb792a9e752dbaeb40de9636d3251874cdbec776

Contents?: true

Size: 331 Bytes

Versions: 5

Compression:

Stored size: 331 Bytes

Contents

require 'spec_helper'

describe IEX::Resources::Logo do
  context "retrieves company's logo", vcr: { cassette_name: 'logo/msft' } do
    subject do
      IEX::Resources::Logo.get('MSFT')
    end

    it 'retrieves a logo' do
      expect(subject.url).to eq 'https://storage.googleapis.com/iex/api/logos/MSFT.png'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
iex-ruby-client-0.4.4 spec/iex/resources/logo_spec.rb
iex-ruby-client-0.4.3 spec/iex/resources/logo_spec.rb
iex-ruby-client-0.4.2 spec/iex/resources/logo_spec.rb
iex-ruby-client-0.4.1 spec/iex/resources/logo_spec.rb
iex-ruby-client-0.4.0 spec/iex/resources/logo_spec.rb