Skip to content

Commit

Permalink
Sort fix
Browse files Browse the repository at this point in the history
  • Loading branch information
repent committed Jun 9, 2015
1 parent 689e422 commit 3cf713d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/rwanda_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@

describe '.districts_of' do
it 'knows all the districts of each province' do
expect(r.districts_of('Kigali City').sort).to eq ["Gasabo", "Kicukiro", "Nyarugenge"].sort
expect(r.districts_of('kigali city').sort).to eq ["Gasabo", "Kicukiro", "Nyarugenge"].sort
expect(r.districts_of('Kigali City')).to eq ["Gasabo", "Kicukiro", "Nyarugenge"].sort
expect(r.districts_of('kigali city')).to eq ["Gasabo", "Kicukiro", "Nyarugenge"].sort
expect(r.districts_of('Foobar')).to eq nil
end
end
Expand Down Expand Up @@ -66,7 +66,7 @@
end

describe '.subdivisions_of' do
it 'knows the sub-divisions of a district, sector or cell' do
it 'knows the sub-divisions of Rwanda, or a district, sector or cell' do
expect(r.subdivisions_of(['Ruhango', 'Ruhango', 'Gikoma'])).to eq ['Gatengeri', 'Gikumba', 'Karama', 'Murambi', 'Nangurugomo', 'Nyarusange', 'Rebero', 'Rubiha', 'Rurembo', 'Ryabonyinka', 'Wimana']
expect(r.subdivisions_of(['RuhANgo', 'RUHANGO', 'GIKOMA'])).to eq ['Gatengeri', 'Gikumba', 'Karama', 'Murambi', 'Nangurugomo', 'Nyarusange', 'Rebero', 'Rubiha', 'Rurembo', 'Ryabonyinka', 'Wimana']
expect(r.subdivisions_of([])).to eq r.districts.sort
Expand Down

0 comments on commit 3cf713d

Please sign in to comment.