spec/routing/popolo/people_routing_spec.rb in popolo-0.0.2 vs spec/routing/popolo/people_routing_spec.rb in popolo-0.0.3
- old
+ new
@@ -1,21 +1,11 @@
require 'spec_helper'
describe Popolo::PeopleController do
describe 'routing' do
- before :each do
- @routes = Popolo::Engine.routes
- end
+ routes { Popolo::Engine.routes }
- it 'routes to #index' do
- get('/people').should route_to('popolo/people#index')
- end
-
it 'routes to #show' do
get('/people/1').should route_to('popolo/people#show', id: '1')
- end
-
- it 'routes to #show' do
- get('/people/foo').should route_to('popolo/people#show', id: 'foo')
end
end
end