spec/routing/popolo/posts_routing_spec.rb in popolo-0.0.2 vs spec/routing/popolo/posts_routing_spec.rb in popolo-0.0.3

- old
+ new

@@ -1,15 +1,9 @@ require 'spec_helper' describe Popolo::PostsController do describe 'routing' do - before :each do - @routes = Popolo::Engine.routes - end - - it 'routes to #index' do - get('/posts').should route_to('popolo/posts#index') - end + routes { Popolo::Engine.routes } it 'routes to #show' do get('/posts/1').should route_to('popolo/posts#show', id: '1') end end