Sha256: 1eb6bd1e9206f05195db1f6c03baaa3e42d8c1899d9b5b65495100ce9e2a32f7

Contents?: true

Size: 446 Bytes

Versions: 9

Compression:

Stored size: 446 Bytes

Contents

require 'spec_helper'

describe IEX::Endpoints::StockMarket do
  include_context 'client'

  describe '#stock_market_list', vcr: { cassette_name: 'stock_market/list_mostactive' } do
    subject { client.stock_market_list(:mostactive) }

    it 'retrieves a list of quotes' do
      expect(subject).to all(be_a(IEX::Resources::Quote))
      expect(subject.map(&:symbol)).to match_array(%w[AAPL AMD BAC F GE INO INTC MSFT T XOM])
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
iex-ruby-client-2.1.0 spec/iex/endpoints/stock_market_spec.rb
iex-ruby-client-2.0.0 spec/iex/endpoints/stock_market_spec.rb
iex-ruby-client-1.6.0 spec/iex/endpoints/stock_market_spec.rb
iex-ruby-client-1.5.0 spec/iex/endpoints/stock_market_spec.rb
iex-ruby-client-1.4.1 spec/iex/endpoints/stock_market_spec.rb
iex-ruby-client-1.4.0 spec/iex/endpoints/stock_market_spec.rb
iex-ruby-client-1.3.0 spec/iex/endpoints/stock_market_spec.rb
iex-ruby-client-1.2.0 spec/iex/endpoints/stock_market_spec.rb
iex-ruby-client-1.1.2 spec/iex/endpoints/stock_market_spec.rb