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

- old
+ new

@@ -1,11 +1,13 @@ -require 'spec_helper' +require 'rails_helper' -describe Popolo::PostsController do - describe 'routing' do - routes { Popolo::Engine.routes } +module Popolo + RSpec.describe PostsController, type: :routing do + describe 'routing' do + routes { Engine.routes } - it 'routes to #show' do - get('/posts/1').should route_to('popolo/posts#show', id: '1') + it 'routes to #show' do + expect(get: '/posts/1').to route_to('popolo/posts#show', id: '1') + end end end end