Sha256: 365e7d2cf115c0df12529f2d8b432427a819b5ac45ea31d90d7f4fb865e3e01d
Contents?: true
Size: 989 Bytes
Versions: 1
Compression:
Stored size: 989 Bytes
Contents
require 'spec_helper' describe Popolo::OrganizationsController do describe 'routing' do before :each do @routes = Popolo::Engine.routes end it 'routes to #index' do get('/organizations').should route_to('popolo/organizations#index') end it 'routes to #show' do get('/organizations/1').should route_to('popolo/organizations#show', id: '1') end it 'routes to #nested_index' do get('/organizations/foo/organizations').should route_to('popolo/organizations#nested_index', path: 'foo') end it 'routes to #nested_show' do get('/organizations/foo/bar').should route_to('popolo/organizations#nested_show', path: 'foo/bar') end it 'routes to #posts' do get('/organizations/foo/posts').should route_to('popolo/organizations#posts', path: 'foo') end it 'routes to #post' do get('/organizations/foo/posts/bar').should route_to('popolo/organizations#post', path: 'foo', id: 'bar') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
popolo-0.0.2 | spec/routing/popolo/organizations_routing_spec.rb |