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

- old
+ new

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