Sha256: 3cc59bc7599539502c4856f4459992b8f48e28248fe67983c9ce04968848cdf0
Contents?: true
Size: 938 Bytes
Versions: 4
Compression:
Stored size: 938 Bytes
Contents
require 'helper' describe WorldbankAsDataframe::IncomeLevel do context 'find' do it 'returns a WorldbankAsDataframe::IncomeLevel' do stub_get('incomeLevels/lmc?format=json'). to_return(:status => 200, :body => fixture('income_level_lmc.json')) @working_class = WorldbankAsDataframe::IncomeLevel.find('lmc').fetch a_get('incomeLevels/lmc?format=json').should have_been_made @working_class.should be_a WorldbankAsDataframe::IncomeLevel end context 'returned IncomeLevel has' do before do stub_get('incomeLevels/lmc?format=json'). to_return(:status => 200, :body => fixture('income_level_lmc.json')) @working_class = WorldbankAsDataframe::IncomeLevel.find('lmc').fetch end it 'an id' do @working_class.id.should eql 'LMC' end it 'a name' do @working_class.name.should eql 'Lower middle income' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems