Sha256: b9dc4ddc1224e1c103a5095401c0c388b3238ec771980182a42b98362dd05c6e
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 Bytes
Contents
require 'spec_helper' describe Popolo::PeopleController do describe 'routing' do before :each do @routes = Popolo::Engine.routes end 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
popolo-0.0.2 | spec/routing/popolo/people_routing_spec.rb |
popolo-0.0.1 | spec/routing/popolo/people_routing_spec.rb |