Sha256: a6752813f46f460e515d977f674b5f6d443e8e872d15da5e78a71165a82665bf
Contents?: true
Size: 968 Bytes
Versions: 4
Compression:
Stored size: 968 Bytes
Contents
require 'helper' describe WorldbankAsDataframe::Source do context 'find' do it 'returns a new Source object' do stub_get('sources/21?format=json'). to_return(:status => 200, :body => fixture('source_21.json')) @gem = WorldbankAsDataframe::Source.find(21).fetch a_get('sources/21?format=json').should have_been_made @gem.should be_a WorldbankAsDataframe::Source end context 'returned Source has' do before do stub_get('sources/21?format=json'). to_return(:status => 200, :body => fixture('source_21.json')) @gem = WorldbankAsDataframe::Source.find(21).fetch end it 'an id' do @gem.id.should eql '21' end it 'a name' do @gem.name.should eql 'Global Economic Monitor (GEM) Commodities' end it 'a description' do @gem.description.should eql '' end it 'a url' do @gem.url.should eql '' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems