Sha256: 81a8717d6a5581a3ed7fc6bc0faf9509ece1011ca02d1c4b879e9e666af235a3
Contents?: true
Size: 631 Bytes
Versions: 2
Compression:
Stored size: 631 Bytes
Contents
require 'spec_helper' describe Cik do describe '.lookup' do context 'when a valid symbol is looked up' do let(:entity) { Cik.lookup('CSCO') } it 'returns a cik' do expect(entity[:cik]).to eq('0000858877') end it 'returns an entity name' do expect(entity[:name]).to eq('CISCO SYSTEMS, INC.') end it 'returns a sic' do expect(entity[:sic]).to eq('3576') end end context 'when an invalid symbol is looked up' do let(:entity) { Cik.lookup('ZZZZ') } it 'returns nil' do expect(entity).to be_nil end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cik-1.0.1 | spec/cik/cik_spec.rb |
cik-1.0.0 | spec/cik/cik_spec.rb |