spec/iex/resources/dividends_spec.rb in iex-ruby-client-0.4.3 vs spec/iex/resources/dividends_spec.rb in iex-ruby-client-0.4.4

- old
+ new

@@ -30,19 +30,18 @@ subject do IEX::Resources::Dividends.get('MSFT', 'INVALID') end let(:dividends) { subject.first } it 'retrieves dividends when invalid range is passed' do - expect(subject.size).to eq 2 # Falls into default 1 year - expect(dividends.type).to eq 'Dividend income' + expect(subject.size).to eq 0 end end context 'with range', vcr: { cassette_name: 'dividends/msft_1y' } do subject do IEX::Resources::Dividends.get('MSFT', '1y') end it 'retrieves dividends with range of 1 year' do - expect(subject.size).to eq 2 + expect(subject.size).to eq 4 end end end context 'invalid symbol', vcr: { cassette_name: 'dividends/invalid' } do subject do