Sha256: ff8383b05b210ce2643cfc31886f34b175acd7491a9935c155e68e634409cc2f
Contents?: true
Size: 857 Bytes
Versions: 2
Compression:
Stored size: 857 Bytes
Contents
require 'helper' describe SymbolParser do describe '#sp500_to_bsym' do it "returns 'BRK/B' when 'BRK.B'" do expect(SymbolParser.new('BRK.B').sp500_to_bsym).to eq('BRK/B') end end describe '#bsym_to_cik' do it "returns '0001067983' when 'BRK/B'" do expect(SymbolParser.new('BRK/B').bsym_to_cik).to eq('0001067983') end it "returns '0000014693' when 'BF/B'" do expect(SymbolParser.new('BF/B').bsym_to_cik).to eq('0000014693') end it "returns '0001355096' when 'QVCA'" do expect(SymbolParser.new('QVCA').bsym_to_cik).to eq('0001355096') end it "returns '0001560385' when 'LMCK'" do expect(SymbolParser.new('LMCK').bsym_to_cik).to eq('0001560385') end it "returns 'CSCO' when 'CSCO'" do expect(SymbolParser.new('CSCO').bsym_to_cik).to eq('CSCO') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stock_index-0.7.0 | spec/stock_index/symbol_parser_spec.rb |
stock_index-0.6.0 | spec/stock_index/symbol_parser_spec.rb |