spec/routing/popolo/organizations_routing_spec.rb in popolo-0.0.1 vs spec/routing/popolo/organizations_routing_spec.rb in popolo-0.0.2
- old
+ new
@@ -12,18 +12,22 @@
it 'routes to #show' do
get('/organizations/1').should route_to('popolo/organizations#show', id: '1')
end
- it 'routes to #show' do
- get('/organizations/foo').should route_to('popolo/organizations#show', id: 'foo')
- 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